pathlib.Path.exists()
  • References/Python/Python/File & Directory Access

Path.exists() Whether the path points to an existing file or directory:

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

PurePath.match(pattern) Match this path against the provided glob-style pattern. Return True if matching is successful

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

stat.S_ISFIFO(mode) Return non-zero if the mode is from a FIFO (named pipe).

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

os.path.normcase(path) Normalize the case of a pathname. On Unix and Mac OS X, this returns the path unchanged; on case-insensitive

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

PurePath.drive A string representing the drive letter or name, if any:

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

shutil.get_terminal_size(fallback=(columns, lines)) Get the size of the terminal window. For

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

Path.lchmod(mode) Like Path.chmod() but, if the path points to a symbolic link, the symbolic link’s mode is changed

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

shutil.get_archive_formats() Return a list of supported formats for archiving. Each element of the returned sequence is a tuple

2025-01-10 15:47:30
filecmp.dircmp.common_dirs
  • References/Python/Python/File & Directory Access

common_dirs Subdirectories in both a and b.

2025-01-10 15:47:30
filecmp.dircmp.common_funny
  • References/Python/Python/File & Directory Access

common_funny Names in both a and b, such that the type differs between the directories, or names for which

2025-01-10 15:47:30