chore(tauri): update documentation for home_dir on iOS (#14121)

* chore(tauri): update documentation for home_dir on iOS

ref #12497

* update
This commit is contained in:
Lucas Fernandes Nogueira
2025-08-30 08:09:38 -03:00
committed by GitHub
parent 7db7142f9f
commit 0b1da30d28
2 changed files with 2 additions and 0 deletions

View File

@@ -174,6 +174,7 @@ impl<R: Runtime> PathResolver<R> {
/// - **Linux:** Resolves to `$HOME`.
/// - **macOS:** Resolves to `$HOME`.
/// - **Windows:** Resolves to `{FOLDERID_Profile}`.
/// - **iOS**: Cannot be written to directly, use one of the app paths instead.
pub fn home_dir(&self) -> Result<PathBuf> {
self.call_resolve("getHomeDir")
}

View File

@@ -149,6 +149,7 @@ impl<R: Runtime> PathResolver<R> {
/// - **Linux:** Resolves to `$HOME`.
/// - **macOS:** Resolves to `$HOME`.
/// - **Windows:** Resolves to `{FOLDERID_Profile}`.
/// - **iOS**: Cannot be written to directly, use one of the app paths instead.
pub fn home_dir(&self) -> Result<PathBuf> {
dirs::home_dir().ok_or(Error::UnknownPath)
}