Tauri resolve
resolve(...: []):Promise
paths
string
<string
>
将一个或多个段的序列解析为绝对路径。paths
path
例
import { resolve, appDataDir } from '@tauri-apps/api/path';
const appDataDirPath = await appDataDir();
const path = await resolve(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');
Since: 1.0.0
参数
名字 | 类型 |
---|---|
...paths | string [] |
Returns: Promise
<string
>