mirror of
https://github.com/rclone/rclone.git
synced 2025-02-08 02:52:02 +08:00
drive: detect files using file size as well as md5 - fixes 980
This commit is contained in:
parent
7679620f4b
commit
28f9b9b611
|
@ -479,8 +479,8 @@ func (f *Fs) ListDir(out fs.ListOpts, job dircache.ListDirJob) (jobs []dircache.
|
||||||
jobs = append(jobs, dircache.ListDirJob{DirID: item.Id, Path: remote + "/", Depth: job.Depth - 1})
|
jobs = append(jobs, dircache.ListDirJob{DirID: item.Id, Path: remote + "/", Depth: job.Depth - 1})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case item.Md5Checksum != "":
|
case item.Md5Checksum != "" || item.FileSize > 0:
|
||||||
// If item has MD5 sum it is a file stored on drive
|
// If item has MD5 sum or a length it is a file stored on drive
|
||||||
o, err := f.newObjectWithInfo(remote, item)
|
o, err := f.newObjectWithInfo(remote, item)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
out.SetError(err)
|
out.SetError(err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user