Class BootstrapFiles

java.lang.Object
com.ultikits.ultitools.bootstrap.BootstrapFiles

final class BootstrapFiles extends Object
Locates framework-owned derived files without following links within the owned subtree.
  • Field Details

  • Constructor Details

    • BootstrapFiles

      private BootstrapFiles()
  • Method Details

    • ensureDirectory

      static Path ensureDirectory(Path path) throws IOException
      Throws:
      IOException
    • requireDirectory

      static void requireDirectory(Path path) throws IOException
      Throws:
      IOException
    • root

      static Path root(Path dataFolder)
    • datapacks

      static Path datapacks(Path bootstrapRoot)
    • cleanStaleTemporaries

      static void cleanStaleTemporaries(Path dataFolder, Logger logger)
      Runs before any new writes; only regular files with the writers' reserved names are stale.
    • deleteTemporaries

      private static void deleteTemporaries(Path directory, String prefix, Logger logger)
    • deleteTemporaryFile

      private static void deleteTemporaryFile(Path file, Logger logger)
    • warnCleanupFailed

      private static void warnCleanupFailed(Logger logger, Path path, Exception failure)