org.apache.tools.ant.taskdefs.optional.net
protected class FTP.FTPDirectoryScanner extends DirectoryScanner
| Nested Class Summary | |
|---|---|
| protected class | FTP.FTPDirectoryScanner.AntFTPFile
an AntFTPFile is a representation of a remote file |
| protected class | FTP.FTPDirectoryScanner.AntFTPRootFile
special class to represent the remote directory itself |
| Field Summary | |
|---|---|
| protected FTPClient | ftp |
| Constructor Summary | |
|---|---|
| FTPDirectoryScanner(FTPClient ftp)
constructor | |
| Method Summary | |
|---|---|
| FTPFile[] | listFiles(String directory, boolean changedir)
list the files present in one directory. |
| FTPFile[] | listFiles(String directory)
cd into one directory and
list the files present in one directory. |
| void | scan()
scans the remote directory,
storing internally the included files, directories, ... |
| protected void | scandir(String dir, String vpath, boolean fast)
scans a particular directory |
Parameters: ftp ftpclient object
Parameters: directory full path on the remote side changedir if true change to directory directory before listing
Returns: array of FTPFile
Parameters: directory full path on the remote side
Returns: array of FTPFile
Parameters: dir directory to scan vpath relative path to the base directory of the remote fileset always ended with a File.separator fast seems to be always true in practice