Package net.minecraft

Class FileUtil

java.lang.Object
net.minecraft.FileUtil

public class FileUtil extends Object
  • Field Details

    • COPY_COUNTER_PATTERN

      private static final Pattern COPY_COUNTER_PATTERN
    • MAX_FILE_NAME

      private static final int MAX_FILE_NAME
      See Also:
    • RESERVED_WINDOWS_FILENAMES

      private static final Pattern RESERVED_WINDOWS_FILENAMES
    • STRICT_PATH_SEGMENT_CHECK

      private static final Pattern STRICT_PATH_SEGMENT_CHECK
  • Constructor Details

    • FileUtil

      public FileUtil()
  • Method Details

    • findAvailableName

      public static String findAvailableName(Path p_133731_, String p_133732_, String p_133733_) throws IOException
      Throws:
      IOException
    • isPathNormalized

      public static boolean isPathNormalized(Path p_133729_)
    • isPathPortable

      public static boolean isPathPortable(Path p_133735_)
    • createPathToResource

      public static Path createPathToResource(Path p_133737_, String p_133738_, String p_133739_)
    • getFullResourcePath

      public static String getFullResourcePath(String p_179923_)
    • normalizeResourcePath

      public static String normalizeResourcePath(String p_179925_)
    • decomposePath

      public static com.mojang.serialization.DataResult<List<String>> decomposePath(String p_248866_)
    • resolvePath

      public static Path resolvePath(Path p_251522_, List<String> p_251495_)
    • isValidStrictPathSegment

      public static boolean isValidStrictPathSegment(String p_249814_)
    • validatePath

      public static void validatePath(String... p_249502_)
    • createDirectoriesSafe

      public static void createDirectoriesSafe(Path p_259902_) throws IOException
      Throws:
      IOException