mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-22 16:58:55 +00:00
fix: ListBucket edge cases (#2399)
This commit is contained in:
parent
54aa278df0
commit
5e6f21a9ff
@ -3370,10 +3370,9 @@ static int readdir_multi_head(const char* path, const S3ObjList& head, void* buf
|
||||
|
||||
for(s3obj_list_t::iterator reiter = notfound_param.notfound_list.begin(); reiter != notfound_param.notfound_list.end(); ++reiter){
|
||||
int dir_result;
|
||||
if(0 == (dir_result = directory_empty(reiter->c_str()))){
|
||||
// Found objects under the path, so the path is directory.
|
||||
//
|
||||
std::string dirpath = path + (*reiter);
|
||||
if(-ENOTEMPTY == (dir_result = directory_empty(dirpath.c_str()))){
|
||||
// Found objects under the path, so the path is directory.
|
||||
|
||||
// Add stat cache
|
||||
if(StatCache::getStatCacheData()->AddStat(dirpath, dummy_header, true)){ // set forcedir=true
|
||||
|
Loading…
Reference in New Issue
Block a user