From 472f065ce79695c2b757d3a2eabd99759bb22992 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 3 Aug 2015 21:18:34 +0100 Subject: [PATCH] Make sizes in Dropbox 64 bit - fixes #80 --- dropbox/dropbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dropbox/dropbox.go b/dropbox/dropbox.go index b66b7b0b4..0b0fa6d2d 100644 --- a/dropbox/dropbox.go +++ b/dropbox/dropbox.go @@ -388,7 +388,7 @@ func (f *FsDropbox) ListDir() fs.DirChan { out <- &fs.Dir{ Name: *name, When: time.Time(entry.ClientMtime), - Bytes: int64(entry.Bytes), + Bytes: entry.Bytes, Count: -1, } } @@ -596,7 +596,7 @@ func (o *FsObjectDropbox) Size() int64 { // // This isn't a complete set of metadata and has an inacurate date func (o *FsObjectDropbox) setMetadataFromEntry(info *dropbox.Entry) { - o.bytes = int64(info.Bytes) + o.bytes = info.Bytes o.modTime = time.Time(info.ClientMtime) }