koofr: ensure folders show the modtime configured by --default-time #6986

This commit is contained in:
Nick Craig-Wood 2023-05-03 10:44:57 +01:00
parent d379641021
commit f7b87a8049

View File

@ -376,7 +376,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
for i, file := range files {
remote := path.Join(dir, f.opt.Enc.ToStandardName(file.Name))
if file.Type == "dir" {
entries[i] = fs.NewDir(remote, time.Unix(0, 0))
entries[i] = fs.NewDir(remote, time.Time{})
} else {
entries[i] = &Object{
fs: f,