path type
for default
Get the type of the object a path refers to (e.g., file, dir, symlink).
Signature
> path type --columns
Parameters
--columns {table}
: For a record or table input, check strings at the given columns, and replace with result
Notes
This checks the file system to confirm the path's object type. If nothing is found, an empty string will be returned.
Examples
Show type of a filepath
> '.' | path type
dir
Show type of a filepath in a column
> ls | path type -c [ name ]