path type for path

Get the type of the object a path refers to (e.g., file, dir, symlink).

Signature

> path type {flags}

Input/output types:

inputoutput
list<string>list<string>
stringstring

Examples

Show type of a filepath

> '.' | path type
dir

Show type of a filepaths in a list

> ls | get name | path type

Notes

This checks the file system to confirm the path's object type. If the path does not exist, null will be returned.