mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 18:37:45 +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})
|
||||
}
|
||||
}
|
||||
case item.Md5Checksum != "":
|
||||
// If item has MD5 sum it is a file stored on drive
|
||||
case item.Md5Checksum != "" || item.FileSize > 0:
|
||||
// If item has MD5 sum or a length it is a file stored on drive
|
||||
o, err := f.newObjectWithInfo(remote, item)
|
||||
if err != nil {
|
||||
out.SetError(err)
|
||||
|
|
Loading…
Reference in New Issue
Block a user