afero
afero copied to clipboard
Add sftpfs files WriteAt and Sync methods
Similarly to #378 the WriteAt and Sync methods are also missing and a TODO despite being implemented by sftp.File already.
Also may i suggest just nesting sftp.File into sftpfs.File to have all necessary interfaces implemented without delegate methods? Something like this
type File struct {
*sftp.File
client *sftp.Client
}
This would allow removing methods Close Name Stat Sync Truncate Read ReadAt Seek Write WriteAt
which are just simple delegates. I'll gladly implement the change if it's ok otherwise you can just merge this pr as it is.