Package net.minecraft
Class FileUtil
java.lang.Object
net.minecraft.FileUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateDirectoriesSafe(Path path) static PathcreatePathToResource(Path dirPath, String locationPath, String fileFormat) decomposePath(String path) static StringfindAvailableName(Path dirPath, String fileName, String fileFormat) static StringgetFullResourcePath(String path) static booleanisPathNormalized(Path p_path) static booleanisPathPortable(Path p_path) static booleanisValidStrictPathSegment(String segment) static StringnormalizeResourcePath(String path) static PathresolvePath(Path path, List<String> subdirectories) static StringsanitizeName(String name) static voidvalidatePath(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
-