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