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

Path.lstat() Like Path.stat() but, if the path points to a symbolic link, return the symbolic link’s information

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

common Files and subdirectories in both a and 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.unregister_unpack_format()
  • References/Python/Python/File & Directory Access

shutil.unregister_unpack_format(name) Unregister an unpack format. name is the name of the format.

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

os.path.getmtime(path) Return the time of last modification of path. The return value is a number giving the number

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

shutil.chown(path, user=None, group=None) Change owner user and/or group of the given path.

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

linecache.lazycache(filename, module_globals) Capture enough detail about a non-file-based module to permit getting its lines

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

fileinput.lineno() Return the cumulative line number of the line that has just been read. Before the first line has been read

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

fileinput.filelineno() Return the line number in the current file. Before the first line has been read, returns 0

2025-01-10 15:47:30