mirror of
https://github.com/rclone/rclone.git
synced 2026-06-10 17:34:30 -04:00
The SFTP serve handler ignored the size attribute of SETSTAT/FSETSTAT requests, only acting on the modification time. This meant a client asking to truncate a file (eg setting the final size of an upload, or an explicit truncate) had no effect at all. This respects the size attribute (if present) by truncating the file to the requested size.