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 pPath) static Path
createPathToResource
(Path pDirPath, String pLocationPath, String pFileFormat) decomposePath
(String p_248866_) static String
findAvailableName
(Path pDirPath, String pFileName, String pFileFormat) static String
getFullResourcePath
(String pPath) static boolean
isPathNormalized
(Path pPath) static boolean
isPathPortable
(Path pPath) static boolean
isValidStrictPathSegment
(String pSegment) static String
normalizeResourcePath
(String pPath) static Path
resolvePath
(Path pPath, List<String> pSubdirectories) static String
sanitizeName
(String pName) static void
validatePath
(String... pElements)
-
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 pDirPath, String pFileName, String pFileFormat) throws IOException - Throws:
IOException
-
isPathNormalized
-
isPathPortable
-
createPathToResource
-
getFullResourcePath
-
normalizeResourcePath
-
decomposePath
-
resolvePath
-
isValidStrictPathSegment
-
validatePath
-
createDirectoriesSafe
- Throws:
IOException
-