Skip to content
Tauri

exists

exists(path, options?): Promise<boolean>

Defined in: plugins/fs/guest-js/index.ts:1149

Check if a path exists.

string | URL

ExistsOptions

Promise<boolean>

import { exists, BaseDirectory } from '@tauri-apps/plugin-fs';
// Check if the `$APPDATA/avatar.png` file exists
await exists('avatar.png', { baseDir: BaseDirectory.AppData });

2.0.0


© 2025 Tauri Contributors. CC-BY / MIT