Package net.minecraft
Class FileUtil
java.lang.Object
net.minecraft.FileUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateDirectoriesSafe(Path pPath) static PathcreatePathToResource(Path pDirPath, String pLocationPath, String pFileFormat) decomposePath(String pPath) static StringfindAvailableName(Path pDirPath, String pFileName, String pFileFormat) static StringgetFullResourcePath(String pPath) static booleanisPathNormalized(Path pPath) static booleanisPathPortable(Path pPath) static booleanisValidStrictPathSegment(String pSegment) static StringnormalizeResourcePath(String pPath) static PathresolvePath(Path pPath, List<String> pSubdirectories) static StringsanitizeName(String pName) static voidvalidatePath(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
-