Skip to content

Commit dc383c0

Browse files
committed
fix ls error(both dir and dir/ are object)
1 parent d30342e commit dc383c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/s3fs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ static int list_bucket(const char* path, S3ObjList& head, const char* delimiter,
24272427
query_prefix += urlEncode(s3_realpath.substr(1));
24282428
}
24292429
if (check_content_only){
2430-
query_maxkey += "max-keys=1";
2430+
query_maxkey += "max-keys=2";
24312431
}else{
24322432
query_maxkey += "max-keys=1000";
24332433
}

0 commit comments

Comments
 (0)