public interface PathCondition
Path
for deletion.Modifier and Type | Field and Description |
---|---|
static PathCondition[] |
EMPTY_ARRAY
The empty array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Path baseDir,
Path relativePath,
BasicFileAttributes attrs)
Returns
true if the specified candidate path should be deleted, false otherwise. |
void |
beforeFileTreeWalk()
Invoked before a new file
tree walk is started.
|
static PathCondition[] |
copy(PathCondition[] source)
Copies the given input.
|
static final PathCondition[] EMPTY_ARRAY
static PathCondition[] copy(PathCondition[] source)
source
- What to copyvoid beforeFileTreeWalk()
boolean accept(Path baseDir, Path relativePath, BasicFileAttributes attrs)
true
if the specified candidate path should be deleted, false
otherwise.baseDir
- the directory from where to start scanning for deletion candidate filesrelativePath
- the candidate for deletion. This path is relative to the baseDir.attrs
- attributes of the candidate pathCopyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.