what is a convenient way to create a directory when a path like this is given: \"\\server\\foo\\bar\\\"
note that the intermediate directories may not exist.
Since C++17:
C++17
bool create_directories( const std::filesystem::path& p ); bool create_directories( const std::filesystem::path& p, std::error_code& ec );
More info: https://en.cppreference.com/w/cpp/filesystem/create_directory