public final class DynamicPath extends Object
| Constructor | Description |
|---|---|
DynamicPath(String path) |
| Modifier and Type | Method | 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 patternsIllegalArgumentException - Path contains invalid or incomplete 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 © 2026. All rights reserved.