Change Dir (ChDir) support in wodSFTP? - WeOnlyDo Discussion board

Change Dir (ChDir) support in wodSFTP? (General questions)

by ManhMike, Wednesday, August 31, 2005, 16:53 (7023 days ago)

Is there any specific reason why wodSFTP doesn't include ChDir support?

It would be a super time saver, as the current implementation seems to require heavy recursion and collection building in order to navigate directory structures.

Re: Change Dir (ChDir) support in wodSFTP?

by wodSupport, Wednesday, August 31, 2005, 18:11 (7023 days ago) @ ManhMike

Mike,

unfortunatelly, CHDIR has no place in our implementation of SFTP since all paths (remote and local) are always to be referenced as absolute. So, instead of doing something like

CHDIR /joe
GET somefile

you should do

GET /joe/somefile

in wodSFTP. There is no term 'current directory' in our SFTP, thus we can't implement CHDIR.

If you really need it, you can add your own logic so that CHDIR stores paths internally, and then presents them as absolute to wodSFTP.

Hope this helps.