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

This commit is contained in:
FQHSLycopene
2025-05-29 02:38:12 -07:00
committed by GitHub
parent 9ffc8bcb54
commit ee0c14673d
+4
View File
@@ -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)
/*