Skip to content

Commit

Permalink
* primop: add readFileType, optimize readDir
Browse files Browse the repository at this point in the history
Allows checking directory entry type of a single file/directory.

This was added to optimize the use of `builtins.readDir` on some
filesystems and operating systems which cannot detect this information
using POSIX's `readdir`.

Previously `builtins.readDir` would eagerly use system calls to lookup
these filetypes using other interfaces; this change makes these
operations lazy in the attribute values for each file with application
of `builtins.readFileType`.
  • Loading branch information
aakropotkin committed Jan 16, 2023
1 parent a90ddaf commit 961f349
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 961f349

Please sign in to comment.