pathlib
Native filesystem paths represented by the immutable Path tuple class.
Lexical operations preserve .. components. Methods that change the filesystem
do not change the stored path.
class Path
Constructors
1
Properties
10
Methods
48
open(self: Self, mode: str = "r", encoding: Optional[str] = None, errors: Optional[str] = None, newline: Optional[str] = None)
open[mode: Literal[str]](self: Self, encoding: Optional[str] = None, errors: Optional[str] = None, newline: Optional[str] = None)
read_text(self: Self, encoding: Optional[str] = None, errors: Optional[str] = None, newline: Optional[str] = None) -> str
write_text(self: Self, data: str, encoding: Optional[str] = None, errors: Optional[str] = None, newline: Optional[str] = None) -> int
glob(self: Self, pattern, *, case_sensitive: Optional[bool] = None, recurse_symlinks: bool = False)
rglob(self: Self, pattern, *, case_sensitive: Optional[bool] = None, recurse_symlinks: bool = False)
Special methods
12