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:
input | output |
---|---|
list<string> | list<string> |
string | string |
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.