@Test public void testIsDirectory() { assertFalse(VFS.getChild("/home/kylin/vsftpd/marketdata-price.txt").isDirectory()); assertFalse(VFS.getChild("/home/kylin/vsftpd/marketdata-price1.txt").isDirectory()); assertTrue(VFS.getChild("/home/kylin/vsftpd/sub").isDirectory()); }
@Override public boolean isDirectory(VirtualFile mountPoint, VirtualFile target) { try { if(this.client.cwd(target.getPathName()) == 250) { return true; } } catch (IOException e) { throw new FtpOperationException(e); } return false; }
FtpFileSystem implements FileSystem { @Override public boolean isDirectory(VirtualFile mountPoint, VirtualFile target) { try { if(this.client.cwd(target.getPathName()) == 250) { return true; } } catch (IOException e) { throw new FtpOperationException(e); } return false; } }
FtpFileSystem implements FileSystem { @Override public boolean isDirectory(VirtualFile mountPoint, VirtualFile target) { try { if(this.client.cwd(target.getPathName()) == 250) { return true; } } catch (IOException e) { throw new FtpOperationException(e); } return false; } FtpFileSystem(FTPClient ftpClient); }
FtpFileSystem implements FileSystem { @Override public boolean isDirectory(VirtualFile mountPoint, VirtualFile target) { try { if(this.client.cwd(target.getPathName()) == 250) { return true; } } catch (IOException e) { throw new FtpOperationException(e); } return false; } 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 isDirectory(VirtualFile mountPoint, VirtualFile target) { try { if(this.client.cwd(target.getPathName()) == 250) { return true; } } catch (IOException e) { throw new FtpOperationException(e); } return false; } 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();  }