Преглед изворни кода

Bug 1661: It is not possible to open S3 folder from command-line/URL or in scripting when path ends with slash

https://winscp.net/tracker/1661
(cherry picked from commit 593fe11e34e18b37d9f818be213db693f39b0af0)

Source commit: c2374a67d43ab6c3df9c2cfbd6b6a6729d29f4eb
Martin Prikryl пре 7 година
родитељ
комит
d554b585b3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      source/core/S3FileSystem.cpp

+ 1 - 1
source/core/S3FileSystem.cpp

@@ -816,7 +816,7 @@ void TS3FileSystem::DoListBucket(
 void TS3FileSystem::ReadDirectoryInternal(
   const UnicodeString & APath, TRemoteFileList * FileList, int MaxKeys, const UnicodeString & FileName)
 {
-  UnicodeString Path = AbsolutePath(APath, false);
+  UnicodeString Path = UnixExcludeTrailingBackslash(AbsolutePath(APath, false));
   if (IsUnixRootPath(Path))
   {
     DebugAssert(FileList != NULL);