Procs
proc hardlink_to(self: Path; target: string | Path)
-
Admonition: since Python 3.10Source Edit
proc read_bytes(self: Path): PyBytes {....raises: [IOError], tags: [ReadIOEffect], forbids: [].}
- Source Edit
proc symlink_to(self: Path; target: string | Path; target_is_directory = false)
- Source Edit
proc write_bytes(self: Path; b: PyBytes) {....raises: [IOError], tags: [WriteIOEffect], forbids: [].}
- Source Edit
proc write_text(self: Path; data: PyStr; encoding = DefEncoding; errors = DefErrors): int {.discardable, ...raises: [ValueError, LookupError, FileExistsError, FileNotFoundError, IsADirectoryError, OSError, Exception], tags: [RootEffect], forbids: [].}
- Source Edit
Templates
template open(self: Path; mode: StringLike = "r"; buffering = -1; encoding = DefEncoding; errors = DefErrors; newline = DefNewLine): untyped
- Source Edit
Exports
-
/, iterdir, touch, /, Path, cwd, is_relative_to, is_absolute, is_dir, ==, iterdir, parent, hash, unlink, relative_to, absolute, /, $, samefile, mkdirParentsExistsOk, joinpath, home, Path, with_suffix, is_relative_to, stat, as_posix, with_name, parents, is_file, parents, /=, is_symlink, open