Skip to content

Commit 0b1da30

Browse files
authored
chore(tauri): update documentation for home_dir on iOS (#14121)
* chore(tauri): update documentation for home_dir on iOS ref #12497 * update
1 parent 7db7142 commit 0b1da30

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/tauri/src/path/android.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ impl<R: Runtime> PathResolver<R> {
174174
/// - **Linux:** Resolves to `$HOME`.
175175
/// - **macOS:** Resolves to `$HOME`.
176176
/// - **Windows:** Resolves to `{FOLDERID_Profile}`.
177+
/// - **iOS**: Cannot be written to directly, use one of the app paths instead.
177178
pub fn home_dir(&self) -> Result<PathBuf> {
178179
self.call_resolve("getHomeDir")
179180
}

crates/tauri/src/path/desktop.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ impl<R: Runtime> PathResolver<R> {
149149
/// - **Linux:** Resolves to `$HOME`.
150150
/// - **macOS:** Resolves to `$HOME`.
151151
/// - **Windows:** Resolves to `{FOLDERID_Profile}`.
152+
/// - **iOS**: Cannot be written to directly, use one of the app paths instead.
152153
pub fn home_dir(&self) -> Result<PathBuf> {
153154
dirs::home_dir().ok_or(Error::UnknownPath)
154155
}

0 commit comments

Comments
 (0)