public interface DirectoryFilter
DirectoryFilter
is used in
conjunction with FileClient.listFiles(Path, DirectoryFilter)
to return a subset of paths in a directory meeting
some desired criteria.Modifier and Type | Field and Description |
---|---|
static DirectoryFilter |
DIRECTORIES
A filter selecting any directory.
|
static DirectoryFilter |
FILES
A filter selecting any file.
|
static DirectoryFilter |
UNFILTERED
A filter selecting any entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(PathDetails entry,
FileSystem fileSystem)
Indicates whether the filter selects the given path.
|
static final DirectoryFilter UNFILTERED
static final DirectoryFilter FILES
static final DirectoryFilter DIRECTORIES
boolean accept(PathDetails entry, FileSystem fileSystem) throws IOException
entry
- fileSystem
- the file systemtrue
if the path passes the filter,
false
otherwise.IOException
- if an I/O error occursCopyright © 2021 Actian Corporation. All rights reserved.