C2FO / vfs

Pluggable, extensible virtual file system for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SFTP writes should be in truncate mode in most cases.

funkyshu opened this issue · comments

Describe the bug
A recent issue with a specific SFTP server revealed that we're not using truncate flag when writing to SFTP.

Expected behavior
Unless seek or read is called first, writes should replace a file (not edit)