Changing directories on remote (General questions)
You will probably award me with the newbie question of the day because I know there must be something simple I am missing.
After searching through the documentation and this forum for a command something like SFTP.ChangeDir( newpath ), I cannot seem to find out how to change directories.
Thanks in advance for help or an explaination!
Re: Changing directories on remote
Crausch,
there is no term 'current directory' in SFTP protocol. At all times you should use full paths when accessing remote (and local!) files. So, instead doing this in regular FTP:
CD /somedir
RETR something
you would do in wodSFTP:
GetFile( /somedir/something ....)
Hope you get the idea. Just make sure you *always* use full paths, and you always start remote path with /
Regards.
Re: Changing directories on remote
Thanks for the quick response!
I'll make note of your suggestions concerning the full paths and making sure they start with / .