From 013fb354d948fd498156c8eff12b24dd0a36b63a Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 23 Sep 2022 20:06:52 -0300 Subject: [PATCH] docs(path): fix log directory documentation --- core/tauri/src/api/path.rs | 4 ++-- tooling/api/src/path.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/tauri/src/api/path.rs b/core/tauri/src/api/path.rs index 3bef9dd5b..621a2dbfe 100644 --- a/core/tauri/src/api/path.rs +++ b/core/tauri/src/api/path.rs @@ -472,9 +472,9 @@ pub fn app_dir(config: &Config) -> Option { /// /// ## 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 { diff --git a/tooling/api/src/path.ts b/tooling/api/src/path.ts index 8cc987f6a..cd2235608 100644 --- a/tooling/api/src/path.ts +++ b/tooling/api/src/path.ts @@ -533,9 +533,9 @@ async function videoDir(): Promise { * * #### 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';