mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
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:
committed by
GitHub
parent
7db7142f9f
commit
0b1da30d28
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user