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

os.path.normcase(path) Normalize the case of a pathname. On Unix and Mac OS X, this returns the path unchanged; on case-insensitive

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

os.path.basename(path) Return the base name of pathname path. This is the second element of the pair returned by passing

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

Path.is_socket() Return True if the path points to a Unix socket (or a symbolic link pointing to a Unix socket)

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

Path.is_symlink() Return True if the path points to a symbolic link, False otherwise.

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

shutil.ignore_patterns(*patterns) This factory function creates a function that can be used as a callable for copytree()‘s

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

tempfile.mkdtemp(suffix=None, prefix=None, dir=None) Creates a temporary directory in the most secure manner possible. There

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

stat.S_ISWHT(mode) Return non-zero if the mode is from a whiteout.

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

classmethod Path.home() Return a new path object representing the user’s home directory (as returned by

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

report_partial_closure() Print a comparison between a and b and common immediate subdirectories.

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

PurePath.match(pattern) Match this path against the provided glob-style pattern. Return True if matching is successful

2025-01-10 15:47:30