protected static class FTP.FTPFileProxy
extends java.io.File
Constructor and Description |
---|
FTPFileProxy(org.apache.commons.net.ftp.FTPFile file)
creates a proxy to a FTP file
|
FTPFileProxy(java.lang.String completePath)
creates a proxy to a FTP directory
|
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
java.lang.String |
getAbsolutePath() |
java.lang.String |
getName() |
java.lang.String |
getParent() |
java.lang.String |
getPath() |
boolean |
isAbsolute()
FTP files are stored as absolute paths
|
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden()
FTP files cannot be hidden
|
long |
lastModified() |
long |
length() |
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, getAbsoluteFile, getCanonicalFile, getCanonicalPath, getFreeSpace, getParentFile, getTotalSpace, getUsableSpace, hashCode, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public FTPFileProxy(org.apache.commons.net.ftp.FTPFile file)
file
- FTPFilepublic FTPFileProxy(java.lang.String completePath)
completePath
- the remote directory.public boolean exists()
exists
in class java.io.File
public java.lang.String getAbsolutePath()
getAbsolutePath
in class java.io.File
public java.lang.String getName()
getName
in class java.io.File
public java.lang.String getParent()
getParent
in class java.io.File
public java.lang.String getPath()
getPath
in class java.io.File
public boolean isAbsolute()
isAbsolute
in class java.io.File
public boolean isDirectory()
isDirectory
in class java.io.File
public boolean isFile()
isFile
in class java.io.File
public boolean isHidden()
isHidden
in class java.io.File
public long lastModified()
lastModified
in class java.io.File
public long length()
length
in class java.io.File