|
|
@ -24,10 +24,14 @@ func (f *Filer) onBucketEvents(event *filer_pb.SubscribeMetadataResponse) { |
|
|
|
} |
|
|
|
if f.DirBucketsPath == event.Directory { |
|
|
|
if message.OldEntry == nil && message.NewEntry != nil { |
|
|
|
f.Store.OnBucketCreation(message.NewEntry.Name) |
|
|
|
if message.NewEntry.IsDirectory { |
|
|
|
f.Store.OnBucketCreation(message.NewEntry.Name) |
|
|
|
} |
|
|
|
} |
|
|
|
if message.OldEntry != nil && message.NewEntry == nil { |
|
|
|
f.Store.OnBucketDeletion(message.OldEntry.Name) |
|
|
|
if message.OldEntry.IsDirectory { |
|
|
|
f.Store.OnBucketDeletion(message.OldEntry.Name) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|