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

fileinput.isfirstline() Returns true if the line just read is the first line of its file, otherwise returns false.

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

shutil.disk_usage(path) Return disk usage statistics about the given path as a named tuple

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

fnmatch.fnmatchcase(filename, pattern) Test whether filename matches pattern, returning

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

left_list Files and subdirectories in a, filtered by hide and ignore.

2025-01-10 15:47:30