src/pylib/Lib/os_impl/path

Source   Edit  

Procs

proc abspath[T](s: PathLike[T]): T
Source   Edit  
func basename[T](s: PathLike[T]): T
Source   Edit  
func dirname[T](s: PathLike[T]): T
Source   Edit  
proc getatime[T](p: PathLike[T]): float
Source   Edit  
proc getctime[T](p: PathLike[T]): float
Source   Edit  
proc getmtime[T](p: PathLike[T]): float
Source   Edit  
proc getsize[T](filename: PathLike[T]): int
Source   Edit  
func isabs(s: PathLike): bool
Source   Edit  
proc isdir(s: PathLike): bool
Source   Edit  
proc isfile(s: PathLike): bool
Source   Edit  
proc nestListWithFirst(op: NimNode; pack: NimNode; first: NimNode): NimNode {.
    ...raises: [], tags: [], forbids: [].}
[a, b, c] is transformed into op(first, op(a, op(c, d))). note this differs macros.nestList Source   Edit  
proc normpath[T](s: PathLike[T]): T
Source   Edit  
func relpath[T](p: PathLike[T]; start = curdir): T
Source   Edit  
func samefile(a, b: PathLike): bool
Source   Edit  
proc samestat(s1, s2: stat_result): bool {....raises: [], tags: [], forbids: [].}
Source   Edit  
func split[T](p: PathLike[T]): (T, T)
Source   Edit  
func splitdrive[T](p: PathLike[T]): (T, T)
Source   Edit  
func splitext[T](p: PathLike[T]): (T, T)
Source   Edit  

Macros

macro join[T: PyStr | PyBytes](a: T; ps: varargs[T]): T
Source   Edit  
macro join[T](a: PathLike[T]; ps: varargs[PathLike[T]]): T
..warning:: NIM-BUG: Currently this variant may fail to compile with Error: type mismatch Source   Edit  

Exports

fspath, substr, ==, str, getChar, [], +=, $, bytes, TimeoutError, +=, exportSincePy, osErrorMsgWithPath, substr, ProcessLookupError, raiseExcWithPath, tryOsOp, mapPathLike, Serial, BlockingIOError, runes, ==, None, noWeirdTarget, str, Version, +, wrapExportSincePy, bytes, PySys_Audit, ==, NoneType, str, CanIOOpenT, +, PyMinor, asVersion, templWrapExportSincePy, contains, ConnectionResetError, BlockingIOError, toNimString, +, [], repr, pathrepr, PermissionError, PySerial, errnoMsg, runeAtPos, asVersion, fspath, raiseErrno, +=, +=, PyMajor, $, or, tryOsOp, PyOSError, ConnectionError, chars, PyBytes, ChildProcessError, bytes, tryOsOp, TypeError, repr, NameError, toNimString, bytes, +, len, KeyboardInterrupt, str, newPyOSError, [], NotImplementedError, +=, SystemExit, pybytes, toNimStr, newPyOSError, getCharPtr, [], Patch, [], osErrorMsgWithPath, byteLen, raiseExcWithPath2, PyReleaseLevelEnum, AttributeError, PyReleaseLevel, substr, PyStr, Minor, and, $, NotADirectoryError, BrokenPipeError, toPyStr, raiseExcWithPath, [], items, PyOSError, runeLenAt, raiseErrnoT, str, FileNotFoundError, BlockingIOError, newBlockingIOError, chars, PathLike, len, IsADirectoryError, toPyStr, @, contains, FileExistsError, toPyStr, asVersion, asVersion, pysince, not, RuntimeError, PyPatch, InterruptedError, PySys_AddAuditHook, pysince, newBlockingIOError, not, raiseErrnoWithPath, contains, getChar, $, bytes, +=, Major, hasChar, ==, +, +, pathrepr, $, InJs, addaudithook, ConnectionAbortedError, str, ConnectionRefusedError, or, tryOsOp, byteLen, items, StringLike, audit, PyOSError, fspath, len, mapPathLike, pysince, raiseExcWithPath, bytes, +, ReleaseLevel, fspath, raiseExcWithPath, bytes, bytes, O_DIRECTORY, O_TMPFILE, O_SYNC, O_DIRECT, O_NONBLOCK, O_TRUNC, O_NOCTTY, O_EXCL, O_CREAT, O_DSYNC, |, name, O_RDONLY, pathsep, O_NOFOLLOW, O_NOATIME, O_CLOEXEC, O_WRONLY, O_APPEND, |=, O_NDELAY, ../../pyconfig/os_consts, O_RSYNC, curdir, extsep, linesep, devnull, defpath, O_RDWR, altsep, sep, O_ASYNC, O_PATH, pardir