org.apache.tools.ant.taskdefs.optional.net
Class FTP.FTPDirectoryScanner
- FTP
- FileScanner, ResourceFactory, SelectorScanner
protected class FTP.FTPDirectoryScanner
internal class allowing to read the contents of a remote file system
using the FTP protocol
used in particular for ftp get operations
differences with DirectoryScanner
"" (the root of the fileset) is never included in the included directories
followSymlinks defaults to false
DEFAULTEXCLUDES , basedir , dirsDeselected , dirsExcluded , dirsIncluded , dirsNotIncluded , everythingIncluded , excludes , filesDeselected , filesExcluded , filesIncluded , filesNotIncluded , haveSlowResults , includes , isCaseSensitive , selectors |
FTPFile[] | listFiles(String directory) - cd into one directory and
list the files present in one directory.
|
FTPFile[] | listFiles(String directory, boolean changedir) - 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
|
addDefaultExclude , addDefaultExcludes , addExcludes , clearResults , couldHoldIncluded , getBasedir , getDefaultExcludes , getDeselectedDirectories , getDeselectedFiles , getExcludedDirectories , getExcludedFiles , getIncludedDirectories , getIncludedDirsCount , getIncludedFiles , getIncludedFilesCount , getNotIncludedDirectories , getNotIncludedFiles , getResource , isCaseSensitive , isEverythingIncluded , isExcluded , isFollowSymlinks , isIncluded , isSelected , match , match , matchPath , matchPath , matchPatternStart , matchPatternStart , removeDefaultExclude , resetDefaultExcludes , scan , scandir , setBasedir , setBasedir , setCaseSensitive , setExcludes , setFollowSymlinks , setIncludes , setSelectors , slowScan |
ftp
protected FTPClient ftp
FTPDirectoryScanner
public FTPDirectoryScanner(FTPClient ftp)
constructor
ftp
- ftpclient object
listFiles
public FTPFile[] listFiles(String directory)
cd into one directory and
list the files present in one directory.
directory
- full path on the remote side
- array of FTPFile
listFiles
public FTPFile[] listFiles(String directory,
boolean changedir)
list the files present in one directory.
directory
- full path on the remote sidechangedir
- if true change to directory directory before listing
- array of FTPFile
scan
public void scan()
scans the remote directory,
storing internally the included files, directories, ...
- scan in interface FileScanner
- scan in interface DirectoryScanner
scandir
protected void scandir(String dir,
String vpath,
boolean fast)
scans a particular directory
dir
- directory to scanvpath
- relative path to the base directory of the remote fileset
always ended with a File.separatorfast
- seems to be always true in practice
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.