if ( content.size() == 1 && content.get( 0 ).getPath().equals( path.getPath().substring( 1 ) + "/.gitignore" ) ) {
delete( path.resolve( ".gitignore" ) );
deleteResource( path, options );
return;
}
throw new DirectoryNotEmptyException( path.toString() );
}
if ( result.getK1().equals( NOT_FOUND ) ) {
throw new NoSuchFileException( path.toString() );
}