protected class FTPTaskMirrorImpl.FTPDirectoryScanner extends DirectoryScanner
Modifier and Type | Class and Description |
---|---|
protected class |
FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPFile
an AntFTPFile is a representation of a remote file
|
protected class |
FTPTaskMirrorImpl.FTPDirectoryScanner.AntFTPRootFile
special class to represent the remote directory itself
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.net.ftp.FTPClient |
ftp |
basedir, 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 and Description |
---|
FTPDirectoryScanner(org.apache.commons.net.ftp.FTPClient ftp)
constructor
|
Modifier and Type | Method and 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.
|
void |
scan()
scans the remote directory,
storing internally the included files, directories, ...
|
protected void |
scandir(java.lang.String dir,
java.lang.String vpath,
boolean fast)
scans a particular directory.
|
addDefaultExclude, 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
public FTPDirectoryScanner(org.apache.commons.net.ftp.FTPClient ftp)
ftp
- ftpclient objectpublic void scan()
scan
in interface FileScanner
scan
in class DirectoryScanner
protected void scandir(java.lang.String dir, java.lang.String vpath, boolean fast)
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 practicepublic org.apache.commons.net.ftp.FTPFile[] listFiles(java.lang.String directory, boolean changedir)
directory
- full path on the remote sidechangedir
- if true change to directory directory before listingpublic org.apache.commons.net.ftp.FTPFile[] listFiles(java.lang.String directory)
directory
- full path on the remote side