Schematic watcher errors if directory is present #2731
Labels
status:accepted
Will be fixed / added to WorldEdit, eventually
type:bug
Incorrect behavior, not working as intended
WorldEdit Version
7.4.0-SNAPSHOT
Platform Version
all
Confirmations
Bug Description
The RecursiveDirectoryWatcher for schematics throws an error on startup (in its watch thread) if sub-directories are present in the schematics folder.
Issue is this line being called before the
Files.isDirectory
check.Expected Behavior
Watcher picks up files in subfolders and doesn't error. Note that the initial startup is wrapped in a try/catch so the watcher actually keeps working afterwards.
Reproduction Steps
mkdir {plugins,config}/WorldEdit/schematics/emptydir
ERROR]: com.sk89q.worldedit.util.io.file.InvalidFilenameException: Invalid characters or extension missing
in log.Can also be reproduced by adding/modifying a directory, including saving a schematic in a non-existent directory (so that WE creates it).
Anything Else?
No response
The text was updated successfully, but these errors were encountered: