mirror of
https://github.com/rclone/rclone
synced 2024-12-24 15:43:45 +01:00
vfs: ignore file not found errors from Hash in Read.Release
There is nothing we can do about this at this point and this error can happen when moving files so we ignore it to clean the logs up.
This commit is contained in:
parent
14cab0fff0
commit
1a8c5708c5
@ -344,6 +344,11 @@ func (fh *ReadFileHandle) checkHash() error {
|
||||
for hashType, dstSum := range fh.hash.Sums() {
|
||||
srcSum, err := o.Hash(context.TODO(), hashType)
|
||||
if err != nil {
|
||||
if os.IsNotExist(errors.Cause(err)) {
|
||||
// if it was file not found then at
|
||||
// this point we don't care any more
|
||||
continue
|
||||
}
|
||||
return err
|
||||
}
|
||||
if !hash.Equals(dstSum, srcSum) {
|
||||
|
Loading…
Reference in New Issue
Block a user