Ver código fonte

docs(path): fix log directory documentation

Lucas Nogueira 2 anos atrás
pai
commit
013fb354d9
2 arquivos alterados com 5 adições e 5 exclusões
  1. 2 2
      core/tauri/src/api/path.rs
  2. 3 3
      tooling/api/src/path.ts

+ 2 - 2
core/tauri/src/api/path.rs

@@ -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> {

+ 3 - 3
tooling/api/src/path.ts

@@ -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';