Tauri resolve

2024-02-05 16:06 更新
resolve(...: []): Promisepathsstring<string>

將一個(gè)或多個(gè)段的序列解析為絕對(duì)路徑。?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

參數(shù)

名字類型
...pathsstring[]

Returns: Promise<string>


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)