Skip to content

Commit

Permalink
fix: ListBucket edge cases (s3fs-fuse#2399)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarpenter2 authored Feb 3, 2024
1 parent 54aa278 commit 5e6f21a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/s3fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()))){
std::string dirpath = path + (*reiter);
if(-ENOTEMPTY == (dir_result = directory_empty(dirpath.c_str()))){
// Found objects under the path, so the path is directory.
//
std::string dirpath = path + (*reiter);

// Add stat cache
if(StatCache::getStatCacheData()->AddStat(dirpath, dummy_header, true)){ // set forcedir=true
Expand Down

0 comments on commit 5e6f21a

Please sign in to comment.