[−][src]Function dirs_next::public_dir
pub fn public_dir() -> Option<PathBuf>
Returns the path to the user's public directory.
The returned value depends on the operating system and is either a Some
, containing a value from the following table, or a None
.
Platform | Value | Example |
---|---|---|
Linux | XDG_PUBLICSHARE_DIR | /home/alice/Public |
macOS | $HOME /Public | /Users/Alice/Public |
Windows | {FOLDERID_Public} | C:\Users\Public |