Skip to content

Commit

Permalink
Match what is in ledatelescope#135.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycedowell committed Mar 25, 2022
1 parent 3547518 commit 1f8b80f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileutils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ inline std::string get_home_dir(void) {
return std::string(homedir);
}
inline void make_dir(std::string path, int perms=775) {
if( std::system(("mkdir -p "+path+" -m "+std::to_string(perms)).c_str()) ) {
if( std::system(("mkdir -p -m "+std::to_string(perms)+" "+path).c_str()) ) {
throw std::runtime_error("Failed to create path: "+path);
}
}
Expand Down

0 comments on commit 1f8b80f

Please sign in to comment.