浏览代码

Issue 2355 – Error when the last page of S3 directory listing is empty

https://winscp.net/tracker/2355

Source commit: fc753c6aad83e9377fc0f9ae8a18dc5a8b866437
Martin Prikryl 7 月之前
父节点
当前提交
3a6e9797aa
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      source/core/S3FileSystem.cpp

+ 2 - 1
source/core/S3FileSystem.cpp

@@ -1472,7 +1472,6 @@ void TS3FileSystem::DoListBucket(
 {
   S3ListBucketHandler ListBucketHandler = { CreateResponseHandler(), &LibS3ListBucketCallback };
   RequestInit(Data);
-  Data.Any = false;
   Data.KeyCount = 0;
   Data.FileList = FileList;
   Data.IsTruncated = false;
@@ -1552,6 +1551,8 @@ void TS3FileSystem::ReadDirectoryInternal(
     TLibS3BucketContext BucketContext = GetBucketContext(BucketName, Prefix);
 
     TLibS3ListBucketCallbackData Data;
+    Data.Any = false;
+
     bool Continue;
 
     do