OxL Справочник OxL
РусскийEnglish

method fs.createDirAll

Creates a directory and its missing parents; an existing directory is fine.

Example:

oxl✓ проверяется в CI
use std.io { File, fs }

fn main() io {
  let dir = fs.tempDir()!
  fs.createDirAll("{dir}/a/b/c")!
  print("{File.isDir("{dir}/a/b/c")}")
  fs.removeAll(dir)!
}
Вывод
true
pub(api) static fn createDirAll(path: str) -> () | IoError  io

С версии. 1.0.0-beta

Параметры

ИмяТип
pathstr

Возвращает

()

Ошибки

Эффекты

io

Определено в: std/io/io.oxl:691

См. также