Function dirs_next::public_dir[][src]

pub fn public_dir() -> Option<PathBuf>
Expand description

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.

PlatformValueExample
LinuxXDG_PUBLICSHARE_DIR/home/alice/Public
macOS$HOME/Public/Users/Alice/Public
Windows{FOLDERID_Public}C:\Users\Public