diff --git a/src/s3fs_util.cpp b/src/s3fs_util.cpp index c9984b1..dacd5e8 100644 --- a/src/s3fs_util.cpp +++ b/src/s3fs_util.cpp @@ -621,7 +621,7 @@ int mkdirp(const string& path, mode_t mode) return EPERM; } }else{ - if(0 != mkdir(base.c_str(), mode)){ + if(0 != mkdir(base.c_str(), mode) && errno != EEXIST){ return errno; } }