From 28f9b9b611c910c5db0b2ef4b5b0d56482f4ad88 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 3 Jan 2017 21:20:21 +0000 Subject: [PATCH] drive: detect files using file size as well as md5 - fixes 980 --- drive/drive.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive/drive.go b/drive/drive.go index 9f53094da..4f7de1ae6 100644 --- a/drive/drive.go +++ b/drive/drive.go @@ -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)