pub fn trusted_dir(dir: &Path) -> bool
Whether dir is private to this user inside a directory this user or the superuser owns, so no one else can have put it, or what it holds, there.
dir