About 32,800 results
Open links in new tab
  1. pathlib — Object-oriented filesystem paths — Python 3.14.2 …

    2 days ago · pathlib implements path operations using PurePath and Path objects, and so it’s said to be object-oriented. On the other hand, the os and os.path modules supply functions that work with low …

  2. File and Directory Access — Python 3.14.2 documentation

    2 days ago · pathlib — Object-oriented filesystem paths Basic use Exceptions Pure paths General properties Operators Accessing individual parts Methods and properties Concrete paths Parsing and …

  3. os.path — Common pathname manipulations — Python 3.14.2 …

    2 days ago · os.path.basename(path, /) ¶ Return the base name of pathname path. This is the second element of the pair returned by passing path to the function split(). Note that the result of this function …

  4. glob — Unix style pathname pattern expansion - Python

    2 days ago · See also pathlib.PurePath.full_match() and pathlib.Path.glob() methods, which call this function to implement pattern matching and globbing. Added in version 3.13.

  5. os — Miscellaneous operating system interfaces — Python 3.14.2 ...

    Note that there is a nice correspondence between several attributes and methods of os.DirEntry and of pathlib.Path. In particular, the name attribute has the same meaning, as do the is_dir(), is_file(), …

  6. What’s new in Python 3.14 — Python 3.15.0a3 documentation

    3 days ago · Add the info attribute, which stores an object implementing the new pathlib.types.PathInfo protocol. The object supports querying the file type and internally caching stat() results.

  7. What’s New In Python 3.12 — Python 3.14.2 documentation

    4 days ago · Filesystem support in os and pathlib has seen a number of improvements, and several modules have better performance. The language changes focus on usability, as f-strings have had …

  8. importlib.resources – Package resource reading, opening and access

    3 days ago · The context manager provides a pathlib.Path object. Exiting the context manager cleans up any temporary files created, e.g. when the resource needs to be extracted from a zip file.

  9. stat — Interpreting stat () results — Python 3.14.2 documentation

    3 days ago · The stat module defines constants and functions for interpreting the results of os.stat(), os.fstat() and os.lstat() (if they exist). For complete details about the stat(), fstat() and lstat() calls, …

  10. shutil — High-level file operations — Python 3.14.2 documentation

    Source code: Lib/shutil.py The shutil module offers a number of high-level operations on files and collections of files. In particular, functions are provided which support file copying and removal...