From d379641021eb4eba10da2e101b47ba3541bba558 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 3 May 2023 10:44:29 +0100 Subject: [PATCH] http: ensure folders show the modtime configured by --default-time #6986 --- backend/http/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/http/http.go b/backend/http/http.go index 518ea411c..5c1f4832c 100644 --- a/backend/http/http.go +++ b/backend/http/http.go @@ -495,7 +495,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e add(file) case fs.ErrorNotAFile: // ...found a directory not a file - add(fs.NewDir(remote, timeUnset)) + add(fs.NewDir(remote, time.Time{})) default: fs.Debugf(remote, "skipping because of error: %v", err) } @@ -507,7 +507,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e name = strings.TrimRight(name, "/") remote := path.Join(dir, name) if isDir { - add(fs.NewDir(remote, timeUnset)) + add(fs.NewDir(remote, time.Time{})) } else { in <- remote }