Class LegacyLangFolderNotice

java.lang.Object
com.ultikits.ultitools.utils.LegacyLangFolderNotice

@Internal public final class LegacyLangFolderNotice extends Object
Reports legacy language directories at startup without opening or modifying their contents.
  • Field Details

  • Constructor Details

    • LegacyLangFolderNotice

      private LegacyLangFolderNotice()
  • Method Details

    • report

      public static void report(File dataFolder, Logger logger)
      Logs one localized INFO notice if legacy language directories are found. The data folder and pluginConfig may be symbolic links; their discovered module and lang entries are not followed if linked. A filesystem failure is logged at FINE without discarding directories already found.
      Parameters:
      dataFolder - the framework data folder
      logger - the framework logger
    • collectModuleDirectories

      private static void collectModuleDirectories(Path config, Path displayRoot, List<String> folders) throws IOException
      Throws:
      IOException
    • collectLangDirectory

      private static void collectLangDirectory(Path owner, Path displayRoot, List<String> folders) throws IOException
      Throws:
      IOException
    • isDirectory

      private static boolean isDirectory(Path path, LinkOption... options) throws IOException
      Throws:
      IOException