Class FTPTaskMirrorImpl.FTPDirectoryScanner
- java.lang.Object
- 
- org.apache.tools.ant.DirectoryScanner
- 
- org.apache.tools.ant.taskdefs.optional.net.FTPTaskMirrorImpl.FTPDirectoryScanner
 
 
- 
- All Implemented Interfaces:
- FileScanner,- ResourceFactory,- SelectorScanner
 - Enclosing class:
- FTPTaskMirrorImpl
 
 protected class FTPTaskMirrorImpl.FTPDirectoryScanner extends DirectoryScanner 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
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classFTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFilean AntFTPFile is a representation of a remote fileprotected classFTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPRootFilespecial class to represent the remote directory itself
 - 
Field SummaryFields Modifier and Type Field Description protected org.apache.commons.net.ftp.FTPClientftp- 
Fields inherited from class org.apache.tools.ant.DirectoryScannerbasedir, DEFAULTEXCLUDES, dirsDeselected, dirsExcluded, dirsIncluded, dirsNotIncluded, DOES_NOT_EXIST_POSTFIX, errorOnMissingDir, everythingIncluded, excludes, filesDeselected, filesExcluded, filesIncluded, filesNotIncluded, haveSlowResults, includes, isCaseSensitive, MAX_LEVELS_OF_SYMLINKS, selectors
 
- 
 - 
Constructor SummaryConstructors Constructor Description FTPDirectoryScanner(org.apache.commons.net.ftp.FTPClient ftp)constructor
 - 
Method SummaryModifier and Type Method Description org.apache.commons.net.ftp.FTPFile[]listFiles(java.lang.String directory)cd into one directory and list the files present in one directory.org.apache.commons.net.ftp.FTPFile[]listFiles(java.lang.String directory, boolean changedir)list the files present in one directory.voidscan()scans the remote directory, storing internally the included files, directories, ...protected voidscandir(java.lang.String dir, java.lang.String vpath, boolean fast)scans a particular directory.- 
Methods inherited from class org.apache.tools.ant.DirectoryScanneraddDefaultExclude, addDefaultExcludes, addExcludes, clearResults, couldHoldIncluded, getBasedir, getDefaultExcludes, getDeselectedDirectories, getDeselectedFiles, getExcludedDirectories, getExcludedFiles, getIncludedDirectories, getIncludedDirsCount, getIncludedFiles, getIncludedFilesCount, getNotFollowedSymlinks, getNotIncludedDirectories, getNotIncludedFiles, getResource, isCaseSensitive, isEverythingIncluded, isExcluded, isFollowSymlinks, isIncluded, isSelected, match, match, matchPath, matchPath, matchPatternStart, matchPatternStart, removeDefaultExclude, resetDefaultExcludes, scandir, setBasedir, setBasedir, setCaseSensitive, setErrorOnMissingDir, setExcludes, setFollowSymlinks, setIncludes, setMaxLevelsOfSymlinks, setSelectors, slowScan
 
- 
 
- 
- 
- 
Method Detail- 
scanpublic void scan() scans the remote directory, storing internally the included files, directories, ...- Specified by:
- scanin interface- FileScanner
- Overrides:
- scanin class- DirectoryScanner
 
 - 
scandirprotected void scandir(java.lang.String dir, java.lang.String vpath, boolean fast)scans a particular directory. populates the scannedDirs cache.- 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
 
 - 
listFilespublic org.apache.commons.net.ftp.FTPFile[] listFiles(java.lang.String directory, boolean changedir)list the files present in one directory.- Parameters:
- directory- full path on the remote side
- changedir- if true change to directory directory before listing
- Returns:
- array of FTPFile
 
 - 
listFilespublic org.apache.commons.net.ftp.FTPFile[] listFiles(java.lang.String directory) cd into one directory and list the files present in one directory.- Parameters:
- directory- full path on the remote side
- Returns:
- array of FTPFile
 
 
- 
 
-