query
On this page

pathIsRegularFile

lib.filesystem.pathIsRegularFile

Docs pulled from | This Revision | about 1 hour ago


Whether a path exists and is a regular file, meaning not a symlink or any other special file type.

Inputs

path

1. Function argument

Type

pathIsRegularFile :: Path -> Bool

Examples

pathIsRegularFile usage example

pathIsRegularFile /.
=> false

pathIsRegularFile /this/does/not/exist
=> false

pathIsRegularFile /some/file.nix
=> true

Noogle also knows

Aliases