Changing directories on remote - WeOnlyDo Discussion board

Changing directories on remote (General questions)

by crausch, Tuesday, November 30, 2004, 21:27 (7096 days ago)

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

by wodSupport, Tuesday, November 30, 2004, 21:34 (7096 days ago) @ crausch

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

by crausch, Tuesday, November 30, 2004, 21:46 (7096 days ago) @ wodSupport

Thanks for the quick response!

I'll make note of your suggestions concerning the full paths and making sure they start with / .