pkg / sftp

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

proposal/exposeRemoveFile #556

Closed edugamo1993 closed 10 months ago

edugamo1993 commented 10 months ago

Some of our use cases require the Remove() function to return an EPERM error.

Like RemoveDirectory, I think removeFile should be exposed and keep Remove() for use when the developer doesn't know if the resource is a file or a directory.

puellanivis commented 10 months ago

This is already an open change https://github.com/pkg/sftp/pull/548