in src/main/java/com/pastdev/jsch/nio/file/UnixSshFileSystemProvider.java [229:241]
private void delete( UnixSshPath path, BasicFileAttributes attributes ) throws IOException {
if ( attributes.isDirectory() ) {
if ( execute( path, path.getFileSystem().getCommand( "rmdir" )
+ " " + path.toAbsolutePath().quotedString() )
.getExitCode() != 0 ) {
throw new DirectoryNotEmptyException( path.toString() );
}
}
else {
executeForStdout( path, path.getFileSystem().getCommand( "unlink" )
+ " " + path.toAbsolutePath().quotedString() );
}
}