cacheDir
이 콘텐츠는 아직 번역되지 않았습니다.
Module @netwiv/api/path · Kind Function
import { cacheDir } from '@netwiv/api/path';Returns the path to the user’s cache directory.
Platform-specific
Section titled “Platform-specific”- Linux: Resolves to
$XDG_CACHE_HOMEor$HOME/.cache. - macOS: Resolves to
$HOME/Library/Caches. - Windows: Resolves to
{FOLDERID_LocalAppData}.
Signature
Section titled “Signature”function cacheDir(): Promise<string>Example
Section titled “Example”import { cacheDir } from '@netwiv/api/path';const cacheDirPath = await cacheDir();Upstream since 1.0.0
Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.