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
ConstructorDescriptionAntFTPRootFile
(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 org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner.AntFTPFile
exists, getClient, getCurpwd, getCurpwdPlusFileSep, getFastRelativePath, getFile, getLink, getName, isDirectory, isSymbolicLink, isTraverseSymlinks, setCurpwd, toString
-
Constructor Details
-
AntFTPRootFile
constructor- Parameters:
aclient
- FTP clientremotedir
- remote directory
-
-
Method Details
-
getAbsolutePath
find the absolute path- Overrides:
getAbsolutePath
in classFTP.FTPDirectoryScanner.AntFTPFile
- Returns:
- absolute path
-
getRelativePath
find out the relative path to root- Overrides:
getRelativePath
in classFTP.FTPDirectoryScanner.AntFTPFile
- Returns:
- empty string
- Throws:
BuildException
- actually neverIOException
- actually never
-