com.github.goldin.org.apache.tools.ant.taskdefs.optional.net
Class FTP.FTPDirectoryScanner.AntFTPRootFile
java.lang.Object
com.github.goldin.org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner.AntFTPFile
com.github.goldin.org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner.AntFTPRootFile
- Enclosing class:
- FTP.FTPDirectoryScanner
protected class FTP.FTPDirectoryScanner.AntFTPRootFile
- extends FTP.FTPDirectoryScanner.AntFTPFile
special class to represent the remote directory itself
- Since:
- Ant 1.6
| Methods inherited from class com.github.goldin.org.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScanner.AntFTPFile |
exists, getClient, getCurpwd, getFastRelativePath, getFile, getLink, getName, isDirectory, isSymbolicLink, isTraverseSymlinks, setCurpwd, toString |
FTP.FTPDirectoryScanner.AntFTPRootFile
public FTP.FTPDirectoryScanner.AntFTPRootFile(org.apache.commons.net.ftp.FTPClient aclient,
String remotedir)
- constructor
- Parameters:
aclient - FTP clientremotedir - remote directory
getAbsolutePath
public String getAbsolutePath()
- find the absolute path
- Overrides:
getAbsolutePath in class FTP.FTPDirectoryScanner.AntFTPFile
- Returns:
- absolute path
getRelativePath
public String getRelativePath()
throws org.apache.tools.ant.BuildException,
IOException
- find out the relative path to root
- Overrides:
getRelativePath in class FTP.FTPDirectoryScanner.AntFTPFile
- Returns:
- empty string
- Throws:
org.apache.tools.ant.BuildException - actually never
IOException - actually never
Copyright © 2012. All Rights Reserved.