std/private/globs

Source   Edit  

unstable API, internal use only for now. this can eventually be moved to std/os and walkDirRec can be implemented in terms of this to avoid duplication

Types

PathEntry = object
  kind*: PathComponent
  path*: string
Source   Edit  

Procs

proc nativeToUnixPath(path: string): string {....raises: [], tags: [], forbids: [].}
Source   Edit  

Iterators

iterator walkDirRecFilter(dir: string;
                          follow: proc (entry: PathEntry): bool = nil;
                          relative = false; checkDir = true): PathEntry {.
    ...tags: [ReadDirEffect], effectsOf: follow, ...raises: [OSError], forbids: [].}
Improved os.walkDirRec. Source   Edit