Page 1 of 1

ChangeDirUp

Posted: Mon 14 May 2018 09:50
by jvm
Hello,

Can anyone tell me how to do a ChangeDirUp via the FScSFTPClient object?

I tried with OpenDirectory, but I can not find a solution.

Thank you in advance to all for your help.

Best regards

Re: ChangeDirUp

Posted: Mon 14 May 2018 10:58
by stlcours
sftp has not "current dir", so there is no "change dir".

But maybe Devart can simulate these actions for simplify the components users? Please consider this!

Re: ChangeDirUp

Posted: Mon 14 May 2018 12:10
by jvm
Hello,

Thanks for the answer, it is a tribute that the objects TScFTPClient and TScSFTPClient have different functions.

it would be nice if Devart took into consideration a similar mode of operation between the two objects.

thank you very much

Re: ChangeDirUp

Posted: Tue 15 May 2018 06:59
by ViktorV
How to correctly specify stlcours: in the SFTP protocol, the term "current working directory" does not exist. You can open the directory using the OpenDirectory method, and you can get the absolute path to any directory using the RetrieveAbsolutePath method.

Re: ChangeDirUp

Posted: Fri 25 May 2018 07:30
by jvm
Hello ViktorV,

Thanks for the answer, I was already gone to the method you advised me.

Best regards

Re: ChangeDirUp

Posted: Fri 25 May 2018 11:26
by ViktorV
Thank you for the interest in our products.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.