Normalizes the given path, resolving '..' and '.' segments and resolve symbolic links.
path
'..'
'.'
import { normalize, appDataDir } from '@tauri-apps/api/path';const appDataDirPath = await appDataDir();const path = await normalize(`${appDataDirPath}/../users/tauri/avatar.png`); Copy
import { normalize, appDataDir } from '@tauri-apps/api/path';const appDataDirPath = await appDataDir();const path = await normalize(`${appDataDirPath}/../users/tauri/avatar.png`);
1.0.0
Normalizes the given
path
, resolving'..'
and'.'
segments and resolve symbolic links.