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 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  
func repr(self: DirEntry): string
Source   Edit  
proc scandir(): ScandirIterator[PyStr] {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc scandir[T](path: PathLike[T]): ScandirIterator[T]
Source   Edit  
func stat(self: DirEntry): stat_result
Source   Edit  

Iterators

iterator items[T](scandirIter: ScandirIterator[T]): DirEntry[T]
Source   Edit  
iterator scandir(): DirEntry[PyStr] {....raises: [FileExistsError,
    FileNotFoundError, IsADirectoryError, OSError], tags: [ReadDirEffect],
                                      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