Package-level declarations

Types

Link copied to clipboard
sealed external interface BaseDirectory

Functions

Link copied to clipboard
external fun appCacheDir(): Promise<String>

Returns the path to the suggested directory for your app's cache files. Resolves to ${cacheDir}/${bundleIdentifier}, where bundleIdentifier is the identifier value configured in tauri.conf.json.

Link copied to clipboard
external fun appConfigDir(): Promise<String>

Returns the path to the suggested directory for your app's config files. Resolves to ${configDir}/${bundleIdentifier}, where bundleIdentifier is the identifier value configured in tauri.conf.json.

Link copied to clipboard
external fun appDataDir(): Promise<String>

Returns the path to the suggested directory for your app's data files. Resolves to ${dataDir}/${bundleIdentifier}, where bundleIdentifier is the identifier value configured in tauri.conf.json.

Link copied to clipboard
external fun appLocalDataDir(): Promise<String>

Returns the path to the suggested directory for your app's local data files. Resolves to ${localDataDir}/${bundleIdentifier}, where bundleIdentifier is the identifier value configured in tauri.conf.json.

Link copied to clipboard
external fun appLogDir(): Promise<String>

Returns the path to the suggested directory for your app's log files.

Link copied to clipboard
external fun audioDir(): Promise<String>

Returns the path to the user's audio directory.

Link copied to clipboard
external fun basename(path: String, ext: String = definedExternally): Promise<String>

Returns the last portion of a path. Trailing directory separators are ignored.

Link copied to clipboard
external fun cacheDir(): Promise<String>

Returns the path to the user's cache directory.

Link copied to clipboard
external fun configDir(): Promise<String>

Returns the path to the user's config directory.

Link copied to clipboard
external fun dataDir(): Promise<String>

Returns the path to the user's data directory.

Link copied to clipboard
external fun delimiter(): String

Returns the platform-specific path segment delimiter:

Link copied to clipboard
external fun desktopDir(): Promise<String>

Returns the path to the user's desktop directory.

Link copied to clipboard
external fun dirname(path: String): Promise<String>

Returns the parent directory of a given path. Trailing directory separators are ignored.

Link copied to clipboard
external fun documentDir(): Promise<String>

Returns the path to the user's document directory.

Link copied to clipboard
external fun downloadDir(): Promise<String>

Returns the path to the user's download directory.

Link copied to clipboard
external fun executableDir(): Promise<String>

Returns the path to the user's executable directory.

Link copied to clipboard
external fun extname(path: String): Promise<String>

Returns the extension of the path.

Link copied to clipboard
external fun fontDir(): Promise<String>

Returns the path to the user's font directory.

Link copied to clipboard
external fun homeDir(): Promise<String>

Returns the path to the user's home directory.

Link copied to clipboard
external fun isAbsolute(path: String): Promise<Boolean>

Returns whether the path is absolute or not.

Link copied to clipboard
external fun join(vararg paths: String): Promise<String>

Joins all given path segments together using the platform-specific separator as a delimiter, then normalizes the resulting path.

Link copied to clipboard
external fun localDataDir(): Promise<String>

Returns the path to the user's local data directory.

Link copied to clipboard
external fun normalize(path: String): Promise<String>

Normalizes the given path, resolving '..' and '.' segments and resolve symbolic links.

Link copied to clipboard
external fun pictureDir(): Promise<String>

Returns the path to the user's picture directory.

Link copied to clipboard
external fun publicDir(): Promise<String>

Returns the path to the user's public directory.

Link copied to clipboard
external fun resolve(vararg paths: String): Promise<String>

Resolves a sequence of paths or path segments into an absolute path.

Link copied to clipboard
external fun resolveResource(resourcePath: String): Promise<String>

Resolve the path to a resource file.

Link copied to clipboard
external fun resourceDir(): Promise<String>

Returns the path to the application's resource directory. To resolve a resource path, see {@linkcode resolveResource}.

Link copied to clipboard
external fun runtimeDir(): Promise<String>

Returns the path to the user's runtime directory.

Link copied to clipboard
external fun sep(): String

Returns the platform-specific path segment separator:

Link copied to clipboard
external fun tempDir(): Promise<String>

Returns a temporary directory.

Link copied to clipboard
external fun templateDir(): Promise<String>

Returns the path to the user's template directory.

Link copied to clipboard
external fun videoDir(): Promise<String>

Returns the path to the user's video directory.