Spec-Zone.ru › Nushell

mkdir for filesystem

Create directories, with intermediary directories if required using uutils/coreutils mkdir.

Signature

> mkdir {flags} ...rest

Flags

  • --verbose, -v: Print a message for each created directory.

Parameters

  • ...rest: The name(s) of the path(s) to create.

Input/output types:

input output
nothing nothing
nothing table<path: string, created: bool, error: oneof<nothing, string>>

Examples

Make a directory named foo.

> mkdir foo

Make multiple directories and show the paths created.

> mkdir -v foo/bar foo2
╭───┬─────────┬─────────┬───────╮
│ # │  path   │ created │ error │
├───┼─────────┼─────────┼───────┤
│ 0 │ foo/bar │ true    │       │
│ 1 │ foo2    │ true    │       │
╰───┴─────────┴─────────┴───────╯

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

Spec-Zone.ru

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