Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

union: the root folder shows the modtime configured by --default-time #6986

Nick Craig-Wood6001f05a12f8
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 {