FtpDLX - Subsesquent ListDir Commands - WeOnlyDo Discussion board

FtpDLX - Subsesquent ListDir Commands (General questions)

by Daniel.Dority, Wednesday, April 16, 2014, 18:01 (3872 days ago)

Hi,

When I first connect with the software, the remote path is set to something like:

"/users/0098"

I call the ListDir method and pass in a folder name of "edit/". This changes the remote path to "edit/", not "/users/0098/edit/" but I still get the files I need. This works great.

Reusing the same open connection, I perform downloads and uploads. To check to ensure the files are uploading correctly, I perform another ListDir command and pass in the "edit/" again. This time around I get a Folder not found exception and DirItems contains zero items.

- If I change my parameter to "/edit/" from "edit/" then I immediately get a folder not found exception. Even on the first run.
- The "/users/0098" folder is set by default after a successful connection.
- I think it is concatenating the remote paths. Using "edit/edit/" instead of just "edit/".

I don't know how to set the report path back to the parent directory. Setting the Remote Path explicitly back to "/users/0098" then calling ListDir("edit/") will fail on the second attempt.

If I disconnect, then connect after each command it works.

What gives?


Complete thread: