mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-24 06:18:25 +00:00
don't fail mkdir when directory exists
This commit is contained in:
parent
1a23b880d5
commit
4fdab46617
@ -621,7 +621,7 @@ int mkdirp(const string& path, mode_t mode)
|
|||||||
return EPERM;
|
return EPERM;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(0 != mkdir(base.c_str(), mode)){
|
if(0 != mkdir(base.c_str(), mode) && errno != EEXIST){
|
||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user