Tauri dirname
dirname(: ):Promise
path
string
<string
>
返回 的目录名称。尾随目录分隔符将被忽略。path
例
import { dirname, appDataDir } from '@tauri-apps/api/path';
const appDataDirPath = await appDataDir();
const dir = await dirname(appDataDirPath);
Since: 1.0.0
参数
名字 | 类型 |
---|---|
path | string |
Returns: Promise
<string
>