Tauri resolve
2024-02-05 16:06 更新
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
>
以上内容是否对您有帮助:
更多建议: