Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vfs: fix saving from chrome without --vfs-cache-mode writes rclone#4293
Due to Chrome's rather complicated use of file handles when saving files from the download windows, rclone was attempting to truncate a closed file. The file appeared closed due to the handling of 0 length files. This patch removes the check for the file being closed in the WriteFileHandle.Truncate call. This is safe because the only action this method takes is to emit an error message if the file is the wrong size. See: https://forum.rclone.org/t/google-drive-cannot-save-files-directly-from-browser-to-gdrive-mounted-path/17992/
- Loading branch information