shutil.which()
  • References/Python/Python/File & Directory Access

shutil.which(cmd, mode=os.F_OK | os.X_OK, path=None) Return the path to an executable which would be run if the given cmd

2025-01-10 15:47:30
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
pathlib.Path.unlink()
  • References/Python/Python/File & Directory Access

Path.unlink() Remove this file or symbolic link. If the path points to a directory, use Path.rmdir() instead.

2025-01-10 15:47:30
pathlib.Path.open()
  • References/Python/Python/File & Directory Access

Path.open(mode='r', buffering=-1, encoding=None, errors=None, newline=None) Open the file pointed to by the path, like the built-in

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

Path.group() Return the name of the group owning the file.

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

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

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

os.path.abspath(path) Return a normalized absolutized version of the pathname path. On most platforms, this is equivalent

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

os.path.isdir(path) Return True if path is an existing directory. This follows symbolic links, so both

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