protected class FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile
extends java.lang.Object
| Constructor and Description | 
|---|
| AntFTPFile(org.apache.commons.net.ftp.FTPClient client,
          org.apache.commons.net.ftp.FTPFile ftpFile,
          java.lang.String curpwd)constructor | 
| AntFTPFile(FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile parent,
          java.lang.String path)other constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | exists()find out if the file exists | 
| java.lang.String | getAbsolutePath()find out the absolute path of the file | 
| protected org.apache.commons.net.ftp.FTPClient | getClient()return the attached FTP client object. | 
| java.lang.String | getCurpwd()returns the path of the directory containing the AntFTPFile. | 
| java.lang.String | getCurpwdPlusFileSep()returns the path of the directory containing the AntFTPFile. | 
| java.lang.String | getFastRelativePath()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.FTPFile | getFile(org.apache.commons.net.ftp.FTPFile[] theFiles,
       java.lang.String lastpathelement)find a file matching a string in an array of FTPFile. | 
| java.lang.String | getLink()if the file is a symbolic link, find out to what it is pointing | 
| java.lang.String | getName()get the name of the file | 
| java.lang.String | getRelativePath()find out the relative path to the rootPath of the enclosing scanner. | 
| boolean | isDirectory()tell if a file is a directory. | 
| boolean | isSymbolicLink()tell if a file is a symbolic link | 
| boolean | isTraverseSymlinks()find out if a symbolic link is encountered in the relative path of this file
 from rootPath. | 
| protected void | setCurpwd(java.lang.String curpwd)sets the current path of an AntFTPFile | 
| java.lang.String | toString()Get a string rep of this object. | 
public AntFTPFile(org.apache.commons.net.ftp.FTPClient client,
                  org.apache.commons.net.ftp.FTPFile ftpFile,
                  java.lang.String curpwd)
client - ftp client variableftpFile - the filecurpwd - absolute remote path where the file is foundpublic AntFTPFile(FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile parent, java.lang.String path)
parent - the parent filepath - a relative path to the parent filepublic boolean exists()
public java.lang.String getLink()
public java.lang.String getName()
public java.lang.String getAbsolutePath()
public java.lang.String getFastRelativePath()
public java.lang.String getRelativePath()
                                 throws java.io.IOException,
                                        BuildException
java.io.IOException - if a change directory fails, ...BuildException - if one of the components of the relative path cannot
 be found.public org.apache.commons.net.ftp.FTPFile getFile(org.apache.commons.net.ftp.FTPFile[] theFiles,
                                                  java.lang.String lastpathelement)
theFiles - array of fileslastpathelement - the file name being soughtpublic boolean isDirectory()
true for directoriespublic boolean isSymbolicLink()
true for symbolic linksprotected org.apache.commons.net.ftp.FTPClient getClient()
protected void setCurpwd(java.lang.String curpwd)
curpwd - the current path one wants to setpublic java.lang.String getCurpwd()
public java.lang.String getCurpwdPlusFileSep()
public boolean isTraverseSymlinks()
                           throws java.io.IOException,
                                  BuildException
true if a symbolic link is encountered in the relative path.java.io.IOException - if one of the change directory or directory listing operations
 failsBuildException - if a path component in the relative path cannot be found.public java.lang.String toString()
toString in class java.lang.Object