Skip to content

Commit 5ffa60a

Browse files
authored
Fixes TransferManager DownloadToDirectory (#2022)
1 parent de25252 commit 5ffa60a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aws-cpp-sdk-transfer/source/transfer/TransferManager.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,10 @@ namespace Aws
11091109
{
11101110
if('/' == filePath[i])
11111111
{
1112+
while (i + 1 < filePath.size() && '/' == filePath[i+1]) // Skip all "//"
1113+
{
1114+
++i;
1115+
}
11121116
if(i + 2 < filePath.size() && '.' == filePath[i+1] && '/' == filePath[i+2]) // if "/./"
11131117
{
11141118
continue;

0 commit comments

Comments
 (0)