macpath
  • References/Python/Python/File & Directory Access

Source code: Lib/macpath.py

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

Path.is_block_device() Return True if the path points to a block device (or a symbolic link pointing to a block

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

PurePath.root A string representing the (local or global) root, if any:

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

PurePath.with_suffix(suffix) Return a new path with the suffix changed. If the original path doesn’t have a suffix

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

Path.owner() Return the name of the user owning the file.

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

PurePath.anchor The concatenation of the drive and root:

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

diff_files Files which are in both a and b, whose contents differ according to the class’s file comparison

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

shutil.unregister_archive_format(name) Remove the archive format name from the list of supported formats.

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

PurePath.name A string representing the final path component, excluding the drive and root, if any:

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

The modules described in this chapter deal with disk files and directories. For example, there are modules for reading the properties of files, manipulating paths in a portable

2025-01-10 15:47:30