Guest User

Untitled

a guest
Jun 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. std::string path = ...;
  2. if (access(path.c_str(), F_OK) == -1) {
  3. if (mkpath(path.c_str()) == -1) {
  4. Log::Message(WARN, "Unable to make path: %s (%s)n", path.c_str(), strerror(errno));
  5. }
  6. }
  7.  
  8. Unable to make path: C:/Users/mattimmer/AppData/Roaming/MyApp/Assets (Permission denied)
Add Comment
Please, Sign In to add comment