Available on crate feature
anon_home
only.Expand description
Replace the home-directory in a filename with ${HOME}
or %UserProfile%
In some privacy-sensitive applications, we want to lower the amount of personally identifying information in our logs. In such environments, it’s good to avoid logging the actual value of the home directory, since those frequently identify the user.
Structs§
- Anon
Home Path - A wrapper for
Path
which, when displayed, replaces the home directory with a symbolic reference.
Constants§
- HOME_
SUBSTITUTION 🔒 - The string that we use to represent our home directory in a compacted path.
Statics§
- HOMEDIRS 🔒
- Cached value of our observed home directory.
Traits§
Functions§
- default_
homedirs 🔒 - Return a list of home directories in official and canonical forms.