Spec-Zone.ru › Nushell

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
string string
list<string> list<string>

Examples

Show type of a filepath.

> '.' | path type
dir

Show type of 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.

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/path_type.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API