Browse Source

Fix TTL Behavior for Directories in Path-Specific Configuration (#6827)

pull/5490/merge
FQHSLycopene 1 week ago
committed by GitHub
parent
commit
ee0c14673d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      weed/filer/filer.go

4
weed/filer/filer.go

@ -197,6 +197,10 @@ func (f *Filer) CreateEntry(ctx context.Context, entry *Entry, o_excl bool, isFr
return fmt.Errorf("entry name too long")
}
if entry.IsDirectory() {
entry.Attr.TtlSec = 0
}
oldEntry, _ := f.FindEntry(ctx, entry.FullPath)
/*

Loading…
Cancel
Save