src/pylib/Lib/os_impl/posix_like/scandirImpl

Source   Edit  

Types

DirEntry[T] = ref object of DirEntryImpl[T]
Source   Edit  

Procs

func close(scandirIter: ScandirIterator)
Source   Edit  
func close(scandirIter: ScandirIterator[int]) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc fdopendir(fd: cint): ptr DIR {.importc, header: "<dirent.h>", ...raises: [],
                                    tags: [], forbids: [].}
Source   Edit  
func is_dir(self: DirEntry): bool
follow_symlinks is True on default. Source   Edit  
func is_dir(self: DirEntry; follow_symlinks: bool): bool
result is cached. Python's is cached too. Source   Edit  
func is_file(self: DirEntry): bool
follow_symlinks is True on default. Source   Edit  
func is_file(self: DirEntry; follow_symlinks: bool): bool
result is cached. Python's is cached too. Source   Edit  
proc is_junction(self: DirEntry): bool
Source   Edit  
func repr(self: DirEntry): string
Source   Edit  
proc scandir(): ScandirIterator[PyStr] {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc scandir(path: int): ScandirIterator[int] {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc scandir[T](path: PathLike[T]): ScandirIterator[T]
Source   Edit  
proc stat(self: DirEntry; follow_symlinks = true): stat_result
Source   Edit  

Iterators

iterator items[T](scandirIter: ScandirIterator[T]): DirEntry[T]
Source   Edit  
iterator scandir(): DirEntry[PyStr] {....raises: [PyOSError],
                                      tags: [ReadDirEffect], forbids: [].}
Source   Edit  
iterator scandir(path: int): DirEntry[int] {....raises: [PyOSError, ValueError],
    tags: [], forbids: [].}
Source   Edit  
iterator scandir[T](path: PathLike[T]): DirEntry[T]
Source   Edit  
iterator scandirIter[T](path: T): DirEntry[T] {.closure.}
used by os.walk Source   Edit  

Templates

template enter(self: ScandirIterator): ScandirIterator
Source   Edit  
template exit(self: ScandirIterator; args: varargs[untyped])
Source   Edit