Archived Forum Post

Index of archived forum posts

Question:

DownloadTreeAsync Not working

Jul 16 '15 at 07:57

something is off with my code..

this code:

        success = ftp.ChangeRemoteDir(somepath)
        If (success <> True) Then
            MsgBox("Fehler in der Ordnerstruktur auf dem server. Download nicht möglich.")
            Exit Sub
        End I
        ftp.DownloadTreeAsync(mypath)

does not start the download at all, and produces following chilkat log. it is as if downloadtreeasync isnt called at all. (somepatch and mypath are real paths and they do exist.) if I use DownloadTree (not Async) it works.

    ChilkatLog:
    ChangeRemoteDir:
    DllDate: Jul 15 2015
    ChilkatVersion: 9.5.0.52
    UnlockPrefix: IGORMAFTP
    Username: PC1203-IMA:ima
    Architecture: Little Endian; 32-bit
    Language: .NET 4.5
    VerboseLogging: 0
    dir: /Programmierung/Movicon/Projekte/AAA/Maschinenraum 2012/FFMO_CAF_MSR_V01_04
    changeRemoteDir:
      simplePathCommand:
        simpleCommand:
          sendCommand:
            sendingCommand: CWD /Programmierung/Movicon/Projekte/AAA/Maschinenraum 2012/FFMO_CAF_MSR_V01_04
          --sendCommand
          readCommandResponse:
            replyLineQP: 250 CWD command successful.
          --readCommandResponse
        --simpleCommand
      --simplePathCommand
    --changeRemoteDir
    Success.
  --ChangeRemoteDir
--ChilkatLog

Accepted Answer

found the solution...

        cktask = ftp.DownloadTreeAsync(downloadpathftp)
        cktask.Run()