mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
union: the root folder shows the modtime configured by --default-time #6986
This commit is contained in:
parent
f7b87a8049
commit
6001f05a12
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user