Getting the initial remote path - WeOnlyDo Discussion board

Getting the initial remote path (General questions)

by ManhMike, Friday, September 09, 2005, 17:15 (7014 days ago)

I have an interesting dilemma and have yet to find a solution.

When I connect to a remote server, I am dropped in a home directory which is several levels deep, i.e. /aaa/bbb/ccc/ddd

However, when I connect to the server, the control treats /aaa/bbb/ccc/ddd as the ftp root, i.e. /

I need to specify relative paths in the in the get and put operations, so I can upload and download to paths BELOW the ftp root.

Obviously, relative paths aren't allowed. I could easily extrapolate where the user needs to be and feed the control the appropriate absolute paths, however I can't find a way to determine my ACTUAL location upon connection.

Is this even possible? If so, could someone point me in the right direction?

Thanks!


Complete thread: