dirname
dirname(
path):Promise<string>
Defined in: path.ts:703
Returns the parent directory of a given path. Trailing directory separators are ignored.
string
Promise<string>
import { dirname } from '@tauri-apps/api/path';const dir = await dirname('/path/to/somedir/');assert(dir === '/path/to');1.0.0
© 2025 Tauri Contributors. CC-BY / MIT