pathlib.PosixPath
  • References/Python/Python/File & Directory Access

class pathlib.PosixPath(*pathsegments) A subclass of Path and PurePosixPath, this class represents

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

PurePath.drive A string representing the drive letter or name, if any:

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

shutil.get_terminal_size(fallback=(columns, lines)) Get the size of the terminal window. For

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

shutil.get_archive_formats() Return a list of supported formats for archiving. Each element of the returned sequence is a tuple

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

stat.S_IMODE(mode) Return the portion of the file’s mode that can be set by

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

PurePath.relative_to(*other) Compute a version of this path relative to the path represented by other. If it’s impossible

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

Path.samefile(other_path) Return whether this path points to the same file as other_path, which can be either a Path

2025-01-10 15:47:30