File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -668,7 +668,9 @@ pub fn home_dir() -> Option<PathBuf> {
668668/// On Unix, returns the value of the `TMPDIR` environment variable if it is
669669/// set, otherwise the value is OS-specific:
670670/// - On Android, there is no global temporary folder (it is usually allocated
671- /// per-app), it returns `/data/local/tmp`.
671+ /// per-app), it will return the application's cache dir if the program runs
672+ /// in application's namespace and system version is Android 13 (or above), or
673+ /// `/data/local/tmp` otherwise.
672674/// - On Darwin-based OSes (macOS, iOS, etc) it returns the directory provided
673675/// by `confstr(_CS_DARWIN_USER_TEMP_DIR, ...)`, as recommended by [Apple's
674676/// security guidelines][appledoc].
You can’t perform that action at this time.
0 commit comments