SftpClient to scan a directory (possibly recursively) and find files that match a given set of
inclusion patterns.
| Modifier and Type | Class and Description |
|---|---|
| public static class | SftpClientDirectoryScanner.
The result of a scan |
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public String | |
| public String | |
| public boolean | Returns: true if items that are not regular files or subdirectories shall be omitted; false
otherwiseTells whether the scanner is set to return only files and links (the default). |
| public Collection | |
| public <C extends Collection | |
| protected < Generic collection type C extends Collection | scandir(SftpClient
The client, String SftpClient instance to useThe absolute path of the folder to read rootDir, String The relative parent of the folder to read - may be empty for base directory parent, C filesList)
|
| public void | setBasedir(String
The base directory from which to start scanning basedir)Note it is converted to its canonical
form when scanning. May not be
|
| public void | setFilesOnly(boolean
whether to skip all items that are not regular files, links, or subdirectories filesOnly)Sets whether the scanner shall return only regular files, links, and subdirectories. |
| public void | setIncludes(Collection<String> includes)
Overrides org.
|
| public void | setSeparator(String separator)
Overrides org.
|
| basedir | back to summary |
|---|---|
| protected String basedir | |
| filesOnly | back to summary |
|---|---|
| private boolean filesOnly | |
| SftpClientDirectoryScanner | back to summary |
|---|---|
| public SftpClientDirectoryScanner() | |
| SftpClientDirectoryScanner | back to summary |
|---|---|
| public SftpClientDirectoryScanner(boolean caseSensitive) | |
| SftpClientDirectoryScanner | back to summary |
|---|---|
| public SftpClientDirectoryScanner(String dir) | |
| SftpClientDirectoryScanner | back to summary |
|---|---|
| public SftpClientDirectoryScanner(String dir, String... includes) | |
| SftpClientDirectoryScanner | back to summary |
|---|---|
| public SftpClientDirectoryScanner(String dir, Collection<String> includes) | |
| createRelativePath | back to summary |
|---|---|
| protected String createRelativePath(String parent, String name) | |
| getBasedir | back to summary |
|---|---|
| public String getBasedir() | |
| getSeparator | back to summary |
|---|---|
| public String getSeparator() Overrides org.
| |
| isFilesOnly | back to summary |
|---|---|
| public boolean isFilesOnly() Tells whether the scanner is set to return only files and links (the default).
| |
| scan | back to summary |
|---|---|
| public Collection Scans the current
| |
| scan | back to summary |
|---|---|
| public <C extends Collection | |
| scandir | back to summary |
|---|---|
protected <C extends Collection
| |
| setBasedir | back to summary |
|---|---|
public void setBasedir(String basedir)
| |
| setFilesOnly | back to summary |
|---|---|
| public void setFilesOnly(boolean filesOnly) Sets whether the scanner shall return only regular files, links, and subdirectories.
| |
| setIncludes | back to summary |
|---|---|
| public void setIncludes(Collection<String> includes) Overrides org.
| |
| setSeparator | back to summary |
|---|---|
| public void setSeparator(String separator) Overrides org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| fullPath | back to summary |
|---|---|
| private final String fullPath | |
| relativePath | back to summary |
|---|---|
| private final String relativePath | |
| ScanDirEntry | back to summary |
|---|---|
| public ScanDirEntry(String fullPath, String relativePath, SftpClient. | |
| getFullPath | back to summary |
|---|---|
public String getFullPath()
| |
| getRelativePath | back to summary |
|---|---|
public String getRelativePath()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |