Fix TTL Behavior for Directories in Path-Specific Configuration (#6827)
This commit is contained in:
@@ -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)
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user