mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-08 15:44:11 +00:00
parent
fa287aeef7
commit
a93e500b44
@ -1829,11 +1829,21 @@ bool FdManager::DeleteCacheDirectory(void)
|
||||
if(0 == FdManager::cache_dir.size()){
|
||||
return true;
|
||||
}
|
||||
|
||||
string cache_path;
|
||||
if(!FdManager::MakeCachePath(NULL, cache_path, false)){
|
||||
return false;
|
||||
}
|
||||
return delete_files_in_dir(cache_path.c_str(), true);
|
||||
if(!delete_files_in_dir(cache_path.c_str(), true)){
|
||||
return false;
|
||||
}
|
||||
|
||||
string mirror_path = FdManager::cache_dir + "/." + bucket + ".mirror";
|
||||
if(!delete_files_in_dir(mirror_path.c_str(), true)){
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int FdManager::DeleteCacheFile(const char* path)
|
||||
|
Loading…
Reference in New Issue
Block a user