pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.49k stars 379 forks source link

Change current working directory? #552

Closed a-urth closed 1 year ago

a-urth commented 1 year ago

Am I missing something or there is no way to change working directory? If so then why?

Its possible to implement it on a client side of course but it just brings what is looks like unnecessary complication.

puellanivis commented 1 year ago

SFTP does not really itself have any concept of a working directory. The working directory that you see in sftp clients is always—as you call it—a client side implementation.

We chose to keep a closer adherence to SFTP itself, rather than adding a working directory concept ourselves in our abstraction level.

a-urth commented 1 year ago

Makes sense. Thank you for answering!On 2 Jul 2023, at 13:58, Cassondra Foesch @.***> wrote: SFTP does not really itself have any concept of a working directory. The working directory that you see in sftp clients is always—as you call it—a client side implementation. We chose to keep a closer adherence to SFTP itself, rather than adding a working directory concept ourselves in our abstraction level.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>