src/pylib/Lib/os_impl/posix_like/stat

Source   Edit  

Types

stat_result = ref object
  data*: Stat                ## inner, used by `getattr` of `stat_result`
Source   Edit  

Procs

func `[]`(self: stat_result; i: int): BiggestInt {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc fstat(fd: int): stat_result {....raises: [PyOSError], tags: [], forbids: [].}
Source   Edit  
proc lstat[T](path: PathLike[T]; dir_fd = DEFAULT_DIR_FD): stat_result
Source   Edit  
proc Py_fstat(fd: int; status: var Stat) {....raises: [OSError], tags: [],
    forbids: [].}

EXT.

fileutils.c _Py_fstat

Source   Edit  
proc Py_fstat_noraise(fd: int; status: var Stat): cint {....raises: [], tags: [],
    forbids: [].}

EXT.

fileutils.c _Py_fstat_noraise

Source   Edit  
func st_atime(self`gensym1: stat_result): float {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
func st_atime_ns(self`gensym1: stat_result): BiggestInt {....raises: [], tags: [],
    forbids: [].}
Admonition: since Python 3.3
Source   Edit  
func st_ctime(self`gensym3: stat_result): float {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
func st_ctime_ns(self`gensym3: stat_result): BiggestInt {....raises: [], tags: [],
    forbids: [].}
Admonition: since Python 3.3
Source   Edit  
func st_mtime(self`gensym2: stat_result): float {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
func st_mtime_ns(self`gensym2: stat_result): BiggestInt {....raises: [], tags: [],
    forbids: [].}
Admonition: since Python 3.3
Source   Edit  
proc stat(path: int; dir_fd = DEFAULT_DIR_FD; follow_symlinks = true): stat_result {.
    ...raises: [ValueError], tags: [], forbids: [].}
Source   Edit  
proc stat[T](path: PathLike[T]; dir_fd = DEFAULT_DIR_FD; follow_symlinks = true): stat_result
Source   Edit  

Templates

template `.`(self: stat_result; attr): untyped
as Python's __getattr__ Source   Edit  
template statAttr(path: PathLike | int; attr: untyped): untyped
stat(path).attr Source   Edit