public interface VfsDirectoryScanner
Modifier and Type | Method and Description |
---|---|
List<org.apache.commons.vfs2.FileObject> |
scan()
Start the scan
|
void |
setCaseSensitive(boolean isCaseSensitive) |
void |
setExcludes(String[] excludes)
Sets the list of exclude patterns to use.
|
void |
setIncludes(String[] includes)
Sets the list of include patterns to use.
|
void |
setStartingDirectory(org.apache.commons.vfs2.FileObject directory) |
void setStartingDirectory(org.apache.commons.vfs2.FileObject directory)
void setIncludes(String[] includes)
File.separatorChar
, so the separator used need not match File.separatorChar
.
When a pattern ends with a '/' or '\', "**" is appended.
includes
- A list of include patterns. May be null
, indicating that all files should be
included. If a non-null
list is given, all elements must be non-null
.void setExcludes(String[] excludes)
When a pattern ends with a '/' or '\', "**" is appended.
excludes
- A list of exclude patterns. May be null
, indicating that no files should be
excluded. If a non-null
list is given, all elements must be non-null
.void setCaseSensitive(boolean isCaseSensitive)
isCaseSensitive
- List<org.apache.commons.vfs2.FileObject> scan() throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
Copyright © 2015 MojoHaus. All rights reserved.