Class BootstrapFiles
java.lang.Object
com.ultikits.ultitools.bootstrap.BootstrapFiles
Locates framework-owned derived files without following links within the owned subtree.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidcleanStaleTemporaries(Path dataFolder, Logger logger) Runs before any new writes; only regular files with the writers' reserved names are stale.(package private) static Pathprivate static voiddeleteTemporaries(Path directory, String prefix, Logger logger) private static voiddeleteTemporaryFile(Path file, Logger logger) (package private) static PathensureDirectory(Path path) (package private) static voidrequireDirectory(Path path) (package private) static Pathprivate static voidwarnCleanupFailed(Logger logger, Path path, Exception failure)
-
Field Details
-
LEDGER_TEMP_PREFIX
- See Also:
-
PACK_TEMP_PREFIX
- See Also:
-
TEMP_SUFFIX
- See Also:
-
-
Constructor Details
-
BootstrapFiles
private BootstrapFiles()
-
-
Method Details
-
ensureDirectory
- Throws:
IOException
-
requireDirectory
- Throws:
IOException
-
root
-
datapacks
-
cleanStaleTemporaries
-
deleteTemporaries
-
deleteTemporaryFile
-
warnCleanupFailed
-