pathlib.PurePath.is_reserved()
  • References/Python/Python/File & Directory Access

PurePath.is_reserved() With PureWindowsPath, return True if the path is considered reserved under

2025-01-10 15:47:30
pathlib.Path.is_char_device()
  • References/Python/Python/File & Directory Access

Path.is_char_device() Return True if the path points to a character device (or a symbolic link pointing to a character

2025-01-10 15:47:30
tempfile.gettempprefixb()
  • References/Python/Python/File & Directory Access

tempfile.gettempprefixb() Same as gettempprefix() but the return value is in bytes.

2025-01-10 15:47:30
glob.iglob()
  • References/Python/Python/File & Directory Access

glob.iglob(pathname, recursive=False) Return an iterator which yields the same values

2025-01-10 15:47:30
os.path.expandvars()
  • References/Python/Python/File & Directory Access

os.path.expandvars(path) Return the argument with environment variables expanded. Substrings of the form $name

2025-01-10 15:47:30
pathlib.PurePath.root
  • References/Python/Python/File & Directory Access

PurePath.root A string representing the (local or global) root, if any:

2025-01-10 15:47:30
filecmp.clear_cache()
  • References/Python/Python/File & Directory Access

filecmp.clear_cache() Clear the filecmp cache. This may be useful if a file is compared so quickly after it is modified that

2025-01-10 15:47:30
pathlib.PurePath.with_suffix()
  • References/Python/Python/File & Directory Access

PurePath.with_suffix(suffix) Return a new path with the suffix changed. If the original path doesn’t have a suffix

2025-01-10 15:47:30
macpath
  • References/Python/Python/File & Directory Access

Source code: Lib/macpath.py

2025-01-10 15:47:30
fnmatch.fnmatch()
  • References/Python/Python/File & Directory Access

fnmatch.fnmatch(filename, pattern) Test whether the filename string matches the pattern string, returning

2025-01-10 15:47:30