pathIsDirectory
lib.pathIsDirectory
Docs pulled from | This Revision | 10 minutes ago
Whether a path exists and is a directory.
Inputs
path
-
1. Function argument
Type
pathIsDirectory :: Path -> Bool
Examples
lib.filesystem.pathIsDirectory
usage example
pathIsDirectory /.
=> true
pathIsDirectory /this/does/not/exist
=> false
pathIsDirectory /some/file.nix
=> false
Noogle detected
Implementation
The following is the current implementation of this function.
pathIsDirectory = path:
pathExists path && pathType path == "directory";