glob.glob()
  • References/Python/Python/File & Directory Access

glob.glob(pathname, *, recursive=False) Return a possibly-empty list of path names that match pathname, which must

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

fnmatch.translate(pattern) Return the shell-style pattern converted to a regular expression.

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

Path.write_bytes(data) Open the file pointed to in bytes mode, write data to it, and close the file:

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

tempfile.SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None) This

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

fnmatch.filter(names, pattern) Return the subset of the list of names that match pattern. It is the same as

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

PurePath.suffixes A list of the path’s file extensions:

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

PurePath.parts A tuple giving access to the path’s various components:

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

os.path.join(path, *paths) Join one or more path components intelligently. The return value is the concatenation of path

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

os.path.isabs(path) Return True if path is an absolute pathname. On Unix, that means it begins with a

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