Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

sebasv

Using CWD works yes, thanks.
Im not using double folders so i can do this with:


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)
canuszczyk

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

Same as mine 1 hour earlier.
I tried to search the forum......
canuszczyk

Error using GetFiles

I'm getting an error downloading a file from an ftp site.
The file is in a subfolder.
Please see the attached session log...