Contents
Class AssetPathUtil
java.lang.Object
com.hypixel.hytale.builtin.asseteditor.util.AssetPathUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInvalidFileName(Path path) Validates that the file name is valid for both windows and linux.static StringRemoves invalid file name characters from a filename
-
Field Details
-
UNIX_FILE_SEPARATOR
- See Also:
-
FILE_EXTENSION_JSON
- See Also:
-
DIR_SERVER
- See Also:
-
DIR_COMMON
- See Also:
-
PATH_DIR_COMMON
-
PATH_DIR_SERVER
-
EMPTY_PATH
-
-
Constructor Details
-
AssetPathUtil
public AssetPathUtil()
-
-
Method Details
-
isInvalidFileName
Validates that the file name is valid for both windows and linux.See: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
- Parameters:
path- the path to validate- Returns:
trueif the file name is invalid
-
removeInvalidFileNameChars
-