Change Dir (ChDir) support in wodSFTP? (General questions)
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?
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.