@Test public void testDelete() throws Exception { writeFile(new File("pom.xml").getAbsolutePath()); VirtualFile file = VFS.getChild("/home/kylin/vsftpd/pom.xml"); assertTrue(file.exists()); assertTrue(file.delete()); assertFalse(file.exists()); }
@Override public boolean delete(VirtualFile mountPoint, VirtualFile target) { try { return this.client.deleteFile(target.getName()); } catch (IOException e) { throw new FtpOperationException(e); } }
FtpFileSystem implements FileSystem { @Override public boolean delete(VirtualFile mountPoint, VirtualFile target) { try { return this.client.deleteFile(target.getName()); } catch (IOException e) { throw new FtpOperationException(e); } } }
FtpFileSystem implements FileSystem { @Override public boolean delete(VirtualFile mountPoint, VirtualFile target) { try { return this.client.deleteFile(target.getName()); } catch (IOException e) { throw new FtpOperationException(e); } } FtpFileSystem(FTPClient ftpClient); }
FtpFileSystem implements FileSystem { @Override public boolean delete(VirtualFile mountPoint, VirtualFile target) { try { return this.client.deleteFile(target.getName()); } catch (IOException e) { throw new FtpOperationException(e); } } FtpFileSystem(FTPClient ftpClient); @Override File getFile(VirtualFile mountPoint, VirtualFile target); @Override InputStream openInputStream(VirtualFile mountPoint, VirtualFile target); @Override boolean isReadOnly(); @Override boolean delete(VirtualFile mountPoint, VirtualFile target); @Override long getSize(VirtualFile mountPoint, VirtualFile target); @Override long getLastModified(VirtualFile mountPoint, VirtualFile target); @Override boolean exists(VirtualFile mountPoint, VirtualFile target); @Override boolean isFile(VirtualFile mountPoint, VirtualFile target); @Override boolean isDirectory(VirtualFile mountPoint, VirtualFile target); @Override List<String> getDirectoryEntries(VirtualFile mountPoint, VirtualFile target); @Override CodeSigner[] getCodeSigners(VirtualFile mountPoint, VirtualFile target); @Override void close(); @Override File getMountSource(); @Override URI getRootURI(); }
FtpFileSystem implements FileSystem { @Override public boolean delete(VirtualFile mountPoint, VirtualFile target) { try { return this.client.deleteFile(target.getName()); } catch (IOException e) { throw new FtpOperationException(e); } } FtpFileSystem(FTPClient ftpClient); @Override File getFile(VirtualFile mountPoint, VirtualFile target); @Override InputStream openInputStream(VirtualFile mountPoint, VirtualFile target); @Override boolean isReadOnly(); @Override boolean delete(VirtualFile mountPoint, VirtualFile target); @Override long getSize(VirtualFile mountPoint, VirtualFile target); @Override long getLastModified(VirtualFile mountPoint, VirtualFile target); @Override boolean exists(VirtualFile mountPoint, VirtualFile target); @Override boolean isFile(VirtualFile mountPoint, VirtualFile target); @Override boolean isDirectory(VirtualFile mountPoint, VirtualFile target); @Override List<String> getDirectoryEntries(VirtualFile mountPoint, VirtualFile target); @Override CodeSigner[] getCodeSigners(VirtualFile mountPoint, VirtualFile target); @Override void close(); @Override File getMountSource(); @Override URI getRootURI();  }