Portable method in C++ to determine special folder locations (Downloads, Documents, Preferences, etc.)

108 Views Asked by At

I've been searching for a portable method in Boost or C++17 std::filesystem (or POSIX) to determine the system sanctioned locations of the user's Documents, Downloads, and Preferences. Do these locations really need to be hard-wired, or is there a C/C++ accessible API for those locations? (portable between Windows/MacOS and ideally iOS/Android)

0

There are 0 best solutions below