diff options
Diffstat (limited to 'weed/filer/filer.go')
| -rw-r--r-- | weed/filer/filer.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/filer/filer.go b/weed/filer/filer.go index 829b4c4b4..6c61cfc3f 100644 --- a/weed/filer/filer.go +++ b/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) /* |
