_const.py 717 B

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