From 6001f05a12f86cb7b567f4f0aa4bcc6845dd192f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 3 May 2023 10:45:48 +0100 Subject: [PATCH] union: the root folder shows the modtime configured by --default-time #6986 --- backend/union/policy/policy.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/union/policy/policy.go b/backend/union/policy/policy.go index d784c8e29..cc7623a4d 100644 --- a/backend/union/policy/policy.go +++ b/backend/union/policy/policy.go @@ -3,7 +3,6 @@ package policy import ( "context" "fmt" - "math/rand" "path" "strings" "time" @@ -109,9 +108,7 @@ func findEntry(ctx context.Context, f fs.Fs, remote string) fs.DirEntry { if err != nil { return nil } - // random modtime for root - randomNow := time.Unix(time.Now().Unix()-rand.Int63n(10000), 0) - return fs.NewDir("", randomNow) + return fs.NewDir("", time.Time{}) } found := false for _, e := range entries {