os.path.islink()
  • References/Python/Python/File & Directory Access

os.path.islink(path) Return True if path refers to a directory entry that is a symbolic link. Always False

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

stat.filemode(mode) Convert a file’s mode to a string of the form ‘-rwxrwxrwx’.

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

tempfile.gettempdir() Return the name of the directory used for temporary files. This defines the default value for the dir

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

tempfile.gettempdirb() Same as gettempdir() but the return value is in bytes.

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

right_only Files and subdirectories only in b.

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

class pathlib.PurePosixPath(*pathsegments) A subclass of PurePath, this path flavour represents non-Windows filesystem

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

Path.rglob(pattern) This is like calling

2025-01-10 15:47:30