mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 04:47:54 +02:00
8d5bc7f28b
Before this change, if the cache was given a source `remote:file` it stored `remote:` with the error `fs.ErrorIsFile` attached. This meant that if it `remote:` was subsequently looked up it would return the `fs.ErrorIsFile` error. This broke `moveto remote:file remote:file2` as moveto would lookup `remote:` from the second argument and erroneously get the `fs.ErrorIsFile` error. This likely broke other commands too. This was broken in 4c9836035 fs/cache: Add Pin and Unpin and canonicalised lookup Which was released in v1.52.0 The fix is to make a new cache entry for `remote:` with no error attached in the case that the original call returned `fs.ErrorIsFile`.