mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-19 10:45:12 +00:00
Merge pull request #252 from Ziggeo/fix-create-cache-directories
This fixes an issue with caching when the creation of a subdirectory …
This commit is contained in:
commit
1fc56e6665
@ -549,15 +549,13 @@ int mkdirp(const string& path, mode_t mode)
|
|||||||
string base;
|
string base;
|
||||||
string component;
|
string component;
|
||||||
stringstream ss(path);
|
stringstream ss(path);
|
||||||
|
int result = 0;
|
||||||
while (getline(ss, component, '/')) {
|
while (getline(ss, component, '/')) {
|
||||||
base += "/" + component;
|
base += "/" + component;
|
||||||
int result = mkdir(base.c_str(), mode);
|
result = mkdir(base.c_str(), mode);
|
||||||
if(0 != result){
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool delete_files_in_dir(const char* dir, bool is_remove_own)
|
bool delete_files_in_dir(const char* dir, bool is_remove_own)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user