mirror of
https://github.com/rclone/rclone.git
synced 2025-02-14 21:23:01 +02:00
Before this change, when uploading files from the VFS cache which were pending a rename, rclone would use the new path of the object when specifiying the destination remote. This didn't cause a problem with most backends as the subsequent rename did nothing, however with the drive backend, since it updates objects, the incorrect Remote was embedded in the object. This caused the rename to apparently succeed but the object be at the wrong location. The fix for this was to make sure we upload to the path stored in the object if available. This problem was spotted by the new rename tests for the VFS layer.