os.path.expanduser()
  • References/Python/Python/File & Directory Access

os.path.expanduser(path) On Unix and Windows, return the argument with an initial component of ~ or ~user

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

report_full_closure() Print a comparison between a and b and common subdirectories (recursively).

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

shutil.move(src, dst, copy_function=copy2) Recursively move a file or directory (src) to another location (dst)

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

funny_files Files which are in both a and b, but could not be compared.

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

filecmp.cmp(f1, f2, shallow=True) Compare the files named f1 and f2, returning True if they seem

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

class pathlib.PurePath(*pathsegments) A generic class that represents the system’s path flavour (instantiating it creates either

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

os.path.getctime(path) Return the system’s ctime which, on some systems (like Unix) is the time of the last metadata change

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

os.path.splitunc(path) Deprecated since version 3.1: Use splitdrive

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