fileinput.close()
  • References/Python/Python/File & Directory Access

fileinput.close() Close the sequence.

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

os.path.getatime(path) Return the time of last access of path. The return value is a number giving the number of seconds

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

shutil.copy(src, dst, *, follow_symlinks=True) Copies the file src to the file or directory dst. src

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
filecmp.dircmp.same_files
  • References/Python/Python/File & Directory Access

same_files Files which are identical in both a and b, using the class’s file comparison operator.

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

os.path.commonpath(paths) Return the longest common sub-path of each pathname in the sequence paths. Raise ValueError

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

stat.S_ISCHR(mode) Return non-zero if the mode is from a character special device file.

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

shutil.rmtree(path, ignore_errors=False, onerror=None) Delete an entire directory tree; path must point to a directory

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

shutil.copy2(src, dst, *, follow_symlinks=True) Identical to copy() except that copy2() also attempts

2025-01-10 15:47:30