Tauri join
join(...: []):Promise
paths
string
<string
>
使用特定于平台的分隔符作为分隔符将所有给定段连接在一起,然后规范化生成的路径。path
例
import { join, appDataDir } from '@tauri-apps/api/path';
const appDataDirPath = await appDataDir();
const path = await join(appDataDirPath, 'users', 'tauri', 'avatar.png');
Since: 1.0.0
参数
名字 | 类型 |
---|---|
...paths | string [] |
Returns: Promise
<string
>