src/pylib/Lib/pathlib_impl/meth

Source   Edit  

Procs

func `/`(p: string; self: Path): Path {....raises: [], tags: [], forbids: [].}
Source   Edit  
func `/`(self: Path; p: string): Path {....raises: [], tags: [], forbids: [].}
Source   Edit  
func `/=`(head: var Path; tail: string): Path {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc absolute(self: Path): Path {....raises: [ValueError, OSError], tags: [],
                                  forbids: [].}
Source   Edit  
func as_posix(self: Path): Path {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc cwd(_: typedesc[Path]): Path
Source   Edit  
proc home(_: typedesc[Path]): Path
Source   Edit  
proc is_absolute(self: Path): bool {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc is_dir(self: Path): bool {....raises: [], tags: [ReadDirEffect], forbids: [].}
Source   Edit  
proc is_file(self: Path): bool {....raises: [], tags: [ReadDirEffect], forbids: [].}
Source   Edit  
proc is_relative_to(self: Path; other: Path): bool {....raises: [Exception],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc is_relative_to(self: Path; other: string): bool {....raises: [Exception],
    tags: [RootEffect], forbids: [].}
Source   Edit  
proc iterdir(self: Path): IterDirGenerator {....raises: [], tags: [], forbids: [].}
Source   Edit  
func joinpath[P: string](self: Path; pathsegments: varargs[P]): Path
Source   Edit  
proc mkdirParentsExistsOk(self: Path) {....raises: [OSError, IOError],
                                        tags: [WriteDirEffect, ReadDirEffect],
                                        forbids: [].}

EXT. equal to path.mkdir(parents=True, exists_ok=True)

not for JS backend

Source   Edit  
proc open(self: Path; mode: FileMode): File {....raises: [IOError], tags: [],
    forbids: [].}
EXT. Source   Edit  
proc read_nstring(self: Path): string {....raises: [IOError], tags: [ReadIOEffect],
                                        forbids: [].}
EXT. Source   Edit  
func relative_to(self: Path; other: string | Path): Path
Source   Edit  
func samefile(self: Path; other_path: string | Path): bool
Source   Edit  
proc write_nstring(self, s: string) {....raises: [IOError], tags: [WriteIOEffect],
                                      forbids: [].}
EXT. Source   Edit  

Iterators

iterator iterdir(self: Path): Path {....raises: [OSError], tags: [ReadDirEffect],
                                     forbids: [].}
Source   Edit