Browse Source
Fix TTL Behavior for Directories in Path-Specific Configuration (#6827)
pull/5490/merge
FQHSLycopene
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
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) |
|
|
|
|
|
|
|
/* |
|
|
|