Package net.minecraft
Class FileUtil
java.lang.Object
net.minecraft.FileUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
createDirectoriesSafe
(Path path) static Path
createPathToResource
(Path dirPath, String locationPath, String fileFormat) decomposePath
(String path) static String
findAvailableName
(Path dirPath, String fileName, String fileFormat) static String
getFullResourcePath
(String path) static boolean
isPathNormalized
(Path p_path) static boolean
isPathPortable
(Path p_path) static boolean
isValidStrictPathSegment
(String segment) static String
normalizeResourcePath
(String path) static Path
resolvePath
(Path path, List<String> subdirectories) static String
sanitizeName
(String name) static void
validatePath
(String... elements)
-
Field Details
-
COPY_COUNTER_PATTERN
-
MAX_FILE_NAME
private static final int MAX_FILE_NAME- See Also:
-
RESERVED_WINDOWS_FILENAMES
-
RESERVED_WINDOWS_FILENAMES_NEOFORGE
-
STRICT_PATH_SEGMENT_CHECK
-
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
sanitizeName
-
findAvailableName
public static String findAvailableName(Path dirPath, String fileName, String fileFormat) throws IOException - Throws:
IOException
-
isPathNormalized
-
isPathPortable
-
createPathToResource
-
getFullResourcePath
-
normalizeResourcePath
-
decomposePath
-
resolvePath
-
isValidStrictPathSegment
-
validatePath
-
createDirectoriesSafe
- Throws:
IOException
-