Function tauri_sys::fs::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.