query
On this page

readDir

lib.readDir

Primop
Docs pulled from | This Revision | 35 minutes ago

Takes 1 arguments

path


Return the contents of the directory path as a set mapping directory entries to the corresponding file type. For instance, if directory A contains a regular file B and another directory C, then builtins.readDir ./A returns the set

{ B = "regular"; C = "directory"; }

The possible values for the file type are "regular", "directory", "symlink" and "unknown".


Noogle detected

Aliases

Detected Type
readDir :: Path -> AttrSet

Implementation

This function is implemented in c++ and is part of the native nix runtime.