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
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
fileinput.nextfile()
  • References/Python/Python/File & Directory Access

fileinput.nextfile() Close the current file so that the next iteration will read the first line from the next file (if any);

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

os.path.samestat(stat1, stat2) Return True if the stat tuples stat1 and stat2 refer to the same

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

os.path.splitdrive(path) Split the pathname path into a pair (drive, tail) where drive is either

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

os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list

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

classmethod Path.home() Return a new path object representing the user’s home directory (as returned by

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
pathlib.Path.cwd()
  • References/Python/Python/File & Directory Access

classmethod Path.cwd() Return a new path object representing the current directory (as returned by

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

Path.stat() Return information about this path (similarly to

2025-01-10 15:47:30