Topic "Error using GetFiles"

Author Message
canuszczyk
[View user's profile]

Joined: 2012-10-18
Posts: 2
Location: Georgia, USA
I'm getting an error downloading a file from an ftp site.
The file is in a subfolder.
Please see the attached session log...
sessionlog.txt (14.39 KB) [Download]

Description: (none)

Advertisements
sebasv
[View user's profile]

Joined: 2012-10-18
Posts: 3
Location: The Netherlands
Same as mine 1 hour earlier.
I tried to search the forum......
canuszczyk
[View user's profile]

Joined: 2012-10-18
Posts: 2
Location: Georgia, USA
sebasv wrote:
Same as mine 1 hour earlier.
I tried to search the forum......


I kind of got it to work. I ended up changing folders on the remote end using the session.executecommand method to call CWD. Then I had to get a list of files in the folder. I was then able to get files. Not sure why, but this works.
sebasv
[View user's profile]

Joined: 2012-10-18
Posts: 3
Location: The Netherlands
Using CWD works yes, thanks.
Im not using double folders so i can do this with:

Quote:

Dim Path() As String
Dim SourceFile As String
If source.Contains("/") Then
Path = source.Split("/")
SourceFile = Path(1)
Dim command As String = "CWD" & Path(0)
session.ExecuteCommand(command)

Else
SourceFile = source
End If

Dim transferResult As TransferOperationResult
transferResult = session.GetFiles(SourceFile, dest)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for your report.
This bug is tracked here:
http://winscp.net/tracker/show_bug.cgi?id=926
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License