5 ms·
There are several libraries that handle directory for you in the appropriate OS-specific manner. One Rust example being https://github.com/dirs-dev/dirs-rs htt
by ElectricalUnion 4y ago
There are several libraries that handle directory for you in the appropriate OS-specific manner.
One Rust example being https://github.com/dirs-dev/dirs-rs https://github.com/dirs-dev/dirs-rs
> The library provides the location of these directories by leveraging the mechanisms defined by
> the XDG base directory and the XDG user directory specifications on Linux and Redox
> the Known Folder API on Windows
> the Standard Directories guidelines on macOS