mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
Merge pull request #745 from orozery/handle_mkdir_exists
don't fail mkdir when directory exists
This commit is contained in:
commit
3f542e9cf5
@ -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…
Reference in New Issue
Block a user