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

tempfile.NamedTemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None, delete=True) This

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

os.path.split(path) Split the pathname path into a pair, (head, tail) where tail is the last

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

stat.S_ISDOOR(mode) Return non-zero if the mode is from a door.

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

stat.S_IFMT(mode) Return the portion of the file’s mode that describes the file type (used by the S_IS*() functions

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

Path.is_file() Return True if the path points to a regular file (or a symbolic link pointing to a regular file)

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

os.path.expandvars(path) Return the argument with environment variables expanded. Substrings of the form $name

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

os.path.supports_unicode_filenames True if arbitrary Unicode strings can be used as file names (within limitations

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

filecmp.cmpfiles(dir1, dir2, common, shallow=True) Compare the files in the two directories dir1 and dir2

2025-01-10 15:47:30