File size: 686 Bytes
956e414 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
import enum
DEFAULT_MIN_LEN = 1
INVALID_CHAR_ERR_MSG_TMPL = "invalids=({invalid}), value={value}"
_NTFS_RESERVED_FILE_NAMES = (
"$Mft",
"$MftMirr",
"$LogFile",
"$Volume",
"$AttrDef",
"$Bitmap",
"$Boot",
"$BadClus",
"$Secure",
"$Upcase",
"$Extend",
"$Quota",
"$ObjId",
"$Reparse",
) # Only in root directory
@enum.unique
class Platform(enum.Enum):
"""
Platform specifier enumeration.
"""
#: POSIX compatible platform.
POSIX = "POSIX"
#: platform independent. note that absolute paths cannot specify this.
UNIVERSAL = "universal"
LINUX = "Linux"
WINDOWS = "Windows"
MACOS = "macOS"
|