Class FTP.FTPDirectoryScanner.AntFTPRootFile
java.lang.Object
org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner.AntFTPFile
org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner.AntFTPRootFile
- Enclosing class:
FTP.FTPDirectoryScanner
special class to represent the remote directory itself
- Since:
- Ant 1.6
-
Constructor Summary
ConstructorsConstructorDescriptionAntFTPRootFile(org.apache.commons.net.ftp.FTPClient aclient, String remotedir) constructor -
Method Summary
Modifier and TypeMethodDescriptionfind the absolute pathfind out the relative path to rootMethods inherited from class FTP.FTPDirectoryScanner.AntFTPFile
exists, getClient, getCurpwd, getCurpwdPlusFileSep, getFastRelativePath, getFile, getLink, getName, isDirectory, isSymbolicLink, isTraverseSymlinks, setCurpwd, toStringModifier and TypeMethodDescriptionbooleanexists()find out if the file existsprotected org.apache.commons.net.ftp.FTPClientreturn the attached FTP client object.returns the path of the directory containing the AntFTPFile.returns the path of the directory containing the AntFTPFile.find out the relative path assuming that the path used to construct this AntFTPFile was spelled properly with regards to case.org.apache.commons.net.ftp.FTPFilefind a file matching a string in an array of FTPFile.getLink()if the file is a symbolic link, find out to what it is pointinggetName()get the name of the filebooleantell if a file is a directory.booleantell if a file is a symbolic linkbooleanfind out if a symbolic link is encountered in the relative path of this file from rootPath.protected voidsets the current path of an AntFTPFiletoString()Get a string rep of this object.
-
Constructor Details
-
AntFTPRootFile
constructor- Parameters:
aclient- FTP clientremotedir- remote directory
-
-
Method Details
-
getAbsolutePath
find the absolute path- Overrides:
getAbsolutePathin classFTP.FTPDirectoryScanner.AntFTPFile- Returns:
- absolute path
-
getRelativePath
find out the relative path to root- Overrides:
getRelativePathin classFTP.FTPDirectoryScanner.AntFTPFile- Returns:
- empty string
- Throws:
BuildException- actually neverIOException- actually never
-