public final class DynamicPath extends Object
| Constructor and Description |
|---|
DynamicPath(String path) |
| Modifier and Type | Method and Description |
|---|---|
List<FileTuple> |
getAllFiles(String backupSuffix)
Gets all original files and backup files that are compatible with the dynamic path.
|
boolean |
isValid(File file)
Checks if an already existing file is compatible with this dynamic path.
|
String |
resolve()
Resolves all patterns and generates a real path for a (new) file.
|
public DynamicPath(String path)
path - Path with patternspublic String resolve()
public List<FileTuple> getAllFiles(String backupSuffix)
backupSuffix - Optional file extension for backup files (can be null if there are no separate backup files)public boolean isValid(File file)
file - File to checktrue if passed file is compatible, false if notCopyright © 2020. All rights reserved.