Function tauri_wasm::plugin::fs::exists

source ·
pub async fn exists(path: &Path, dir: BaseDirectory) -> Result<bool>
Expand description

Checks if a path exists.

§Example

use tauri_wasm::plugin::fs;

let file_exists = fs::exists(path, BaseDirectory::Download).expect("could not check if path exists");

Requires plugins > fs > exists to be enabled.