Dir type
Direct parent types
- Path
Represents file system path such as a file, a block device, etc Direct subtypes: 7
- Eachable1
Eachable which each() calls the callback with one argument Direct subtypes: 18
Direct children types
- TmpDir
Represents a temporary directory. Automatically removed when the script exits.
Methods
- each(d:Dir, cb:Fun) Source: stdlib.ngs:6293
Call cb for each entry in the directory with a subtype of Path as an argument Returns
d
- filter(d:Dir, pattern:Any) Source: stdlib.ngs:6298
Filter entries in d Returns
ArrExample
parent_dir.filter(Dir).each(F(sub_dir) echo(sub_dir))
- require(d:Dir)experimental Source: stdlib.ngs:9532
Undocumented