Closed edugamo1993 closed 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.
This is already an open change https://github.com/pkg/sftp/pull/548
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.