mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
docs(path): fix log directory documentation
This commit is contained in:
@@ -472,9 +472,9 @@ pub fn app_dir(config: &Config) -> Option<PathBuf> {
|
||||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - **Linux:** Resolves to `${config_dir}/${bundle_identifier}`.
|
||||
/// - **Linux:** Resolves to `${config_dir}/${bundle_identifier}/logs`.
|
||||
/// - **macOS:** Resolves to `${home_dir}//Library/Logs/{bundle_identifier}`
|
||||
/// - **Windows:** Resolves to `${config_dir}/${bundle_identifier}`.
|
||||
/// - **Windows:** Resolves to `${config_dir}/${bundle_identifier}/logs`.
|
||||
///
|
||||
/// See [`PathResolver::log_dir`](crate::PathResolver#method.log_dir) for a more convenient helper function.
|
||||
pub fn log_dir(config: &Config) -> Option<PathBuf> {
|
||||
|
||||
@@ -533,9 +533,9 @@ async function videoDir(): Promise<string> {
|
||||
*
|
||||
* #### Platform-specific
|
||||
*
|
||||
* - **Linux:** Resolves to `${configDir}/${bundleIdentifier}`.
|
||||
* - **macOS:** Resolves to `${homeDir}//Library/Logs/{bundleIdentifier}`
|
||||
* - **Windows:** Resolves to `${configDir}/${bundleIdentifier}`.
|
||||
* - **Linux:** Resolves to `${configDir}/${bundleIdentifier}/logs`.
|
||||
* - **macOS:** Resolves to `${homeDir}/Library/Logs/{bundleIdentifier}`
|
||||
* - **Windows:** Resolves to `${configDir}/${bundleIdentifier}/logs`.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { logDir } from '@tauri-apps/api/path';
|
||||
|
||||
Reference in New Issue
Block a user