Skip to main content

data_dir_for

Function data_dir_for 

Source
pub fn data_dir_for(app_id: &str) -> Option<PathBuf>
Expand description

data_dir for the app app_id rather than this process’s own: a host that keeps a folder per hosted app (a day-lite superapp, a crash reporter’s store), or a tool finding where an app it launched writes. On Android and HarmonyOS, where the host’s directory is already the one app’s, the id changes nothing.