tauri_sys::fs

Function create_dir_all

source
pub async fn create_dir_all(
    dir: &Path,
    base_dir: BaseDirectory,
) -> Result<(), Error>
Expand description

Creates a directory recursively.

ยงExample

use tauri_sys::fs;

fs::create_dir_all(dir, BaseDirectory::Download).expect("could not create directory");

Requires allowlist > fs > createDir to be enabled.