
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 …
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 …
glob — Unix style pathname pattern expansion - Python
3 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.
What’s new in Python 3.14 — Python 3.15.0a2 documentation
2 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.
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 …
stat — Interpreting stat () results — Python 3.14.2 documentation
2 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, …
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(), …
tempfile — Generate temporary files and directories - Python
1 day ago · Source code: Lib/tempfile.py This module creates temporary files and directories. It works on all supported platforms. TemporaryFile, NamedTemporaryFile, TemporaryDirectory, and …
importlib.resources – Package resource reading, opening and access
5 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.
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...