Package net.minecraft
Class FileUtil
java.lang.Object
net.minecraft.FileUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createDirectoriesSafe
(Path p_259902_) static Path
createPathToResource
(Path p_133737_, String p_133738_, String p_133739_) decomposePath
(String p_248866_) static String
findAvailableName
(Path p_133731_, String p_133732_, String p_133733_) static String
getFullResourcePath
(String p_179923_) static boolean
isPathNormalized
(Path p_133729_) static boolean
isPathPortable
(Path p_133735_) static boolean
isValidStrictPathSegment
(String p_249814_) static String
normalizeResourcePath
(String p_179925_) static Path
resolvePath
(Path p_251522_, List<String> p_251495_) static void
validatePath
(String... p_249502_)
-
Field Details
-
COPY_COUNTER_PATTERN
-
MAX_FILE_NAME
private static final int MAX_FILE_NAME- See Also:
-
RESERVED_WINDOWS_FILENAMES
-
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
-
isPathPortable
-
createPathToResource
-
getFullResourcePath
-
normalizeResourcePath
-
decomposePath
-
resolvePath
-
isValidStrictPathSegment
-
validatePath
-
createDirectoriesSafe
- Throws:
IOException
-