From 84281c90891cb6e444435940bf7e48bb24da53c9 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 3 May 2023 10:43:31 +0100 Subject: [PATCH] dropbox: ensure folders show the modtime configured by --default-time #6986 --- backend/dropbox/dropbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go index 4603898e4..eaefaa4b1 100644 --- a/backend/dropbox/dropbox.go +++ b/backend/dropbox/dropbox.go @@ -719,7 +719,7 @@ func (f *Fs) listSharedFolders(ctx context.Context) (entries fs.DirEntries, err } for _, entry := range res.Entries { leaf := f.opt.Enc.ToStandardName(entry.Name) - d := fs.NewDir(leaf, time.Now()).SetID(entry.SharedFolderId) + d := fs.NewDir(leaf, time.Time{}).SetID(entry.SharedFolderId) entries = append(entries, d) if err != nil { return nil, err @@ -906,7 +906,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e leaf := f.opt.Enc.ToStandardName(path.Base(entryPath)) remote := path.Join(dir, leaf) if folderInfo != nil { - d := fs.NewDir(remote, time.Now()).SetID(folderInfo.Id) + d := fs.NewDir(remote, time.Time{}).SetID(folderInfo.Id) entries = append(entries, d) } else if fileInfo != nil { o, err := f.newObjectWithInfo(ctx, remote, fileInfo)