@Test public void testRemove() throws Exception { FtpFileConnection conn = sample(); VirtualFile pom = VFS.getChild(new File("pom.xml").getAbsolutePath()); VirtualFile file = conn.getFile("pom.xml"); conn.add(pom.openStream(), pom.getName()); assertTrue(file.exists()); conn.remove("pom.xml"); assertFalse(file.exists()); conn.close(); }
@Override public boolean remove(String path) { return this.mountPoint.getChild(path).delete(); }
FtpFileConnection implements VirtualFileConnection { @Override public boolean remove(String path) { return this.mountPoint.getChild(path).delete(); } }
FtpFileConnection implements VirtualFileConnection { @Override public boolean remove(String path) { return this.mountPoint.getChild(path).delete(); } FtpFileConnection(FtpConfiguration config); }
FtpFileConnection implements VirtualFileConnection { @Override public boolean remove(String path) { return this.mountPoint.getChild(path).delete(); } FtpFileConnection(FtpConfiguration config); @Override void close(); @Override org.teiid.file.VirtualFile[] getFiles(String pattern); VirtualFile getFile(String path); @Override void add(InputStream in, String path); @Override boolean remove(String path); @Override boolean areFilesUsableAfterClose(); }
FtpFileConnection implements VirtualFileConnection { @Override public boolean remove(String path) { return this.mountPoint.getChild(path).delete(); } FtpFileConnection(FtpConfiguration config); @Override void close(); @Override org.teiid.file.VirtualFile[] getFiles(String pattern); VirtualFile getFile(String path); @Override void add(InputStream in, String path); @Override boolean remove(String path); @Override boolean areFilesUsableAfterClose(); static final BundleUtil UTIL; }