Skip to content

Commit

Permalink
The behavior of Create must be closer to mkdir -p.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik committed May 7, 2024
1 parent cb7c62f commit e356800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/source/load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void Create(const std::string &path) {
#ifdef _WIN32
orc_syscall(mkdir(path.c_str()), ERROR_ALREADY_EXISTS);
#else
orc_syscall(mkdir(path.c_str(), 0755));
orc_syscall(mkdir(path.c_str(), 0755), EEXIST);
#endif
}

Expand Down

0 comments on commit e356800

Please sign in to comment.