1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

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

Source commit: 1a327859858352284c82d1f1307e6b5caf71343d
This commit is contained in:
Martin Prikryl
2018-07-10 09:54:07 +00:00
parent c48360ab9d
commit 593fe11e34

View File

@@ -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);