query
On this page

pathType

lib.pathType

Primop

Takes 1 arguments

p


The type of a path. The path needs to exist and be accessible. The result is either "directory" for a directory, "regular" for a regular file, "symlink" for a symlink, or "unknown" for anything else.

Example

pathType /.
=> "directory"
pathType /some/file.nix
=> "regular"

Type

pathType :: Path -> String
(lib.filesystem.pathType)

Noogle also knows

Aliases