cacheDir
cacheDir():
Promise
<string
>
Defined in: path.ts:220
Returns the path to the user’s cache directory.
- Linux: Resolves to
$XDG_CACHE_HOME
or$HOME/.cache
. - macOS: Resolves to
$HOME/Library/Caches
. - Windows: Resolves to
{FOLDERID_LocalAppData}
.
Promise
<string
>
import { cacheDir } from '@tauri-apps/api/path';const cacheDirPath = await cacheDir();
1.0.0
© 2025 Tauri Contributors. CC-BY / MIT