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

Path.expanduser() Return a new path with expanded ~ and ~user constructs, as returned by

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

left_list Files and subdirectories in a, filtered by hide and ignore.

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

common Files and subdirectories in both a and b.

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

os.path.normpath(path) Normalize a pathname by collapsing redundant separators and up-level references so that A//B

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

shutil.copyfile(src, dst, *, follow_symlinks=True) Copy the contents (no metadata) of the file named src to a file

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

shutil.unpack_archive(filename[, extract_dir[, format]]) Unpack an archive. filename is the full path of the archive

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

PurePath.stem The final path component, without its suffix:

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

linecache.checkcache(filename=None) Check the cache for validity. Use this function if files in the cache may have changed on

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
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