Skip to content

Commit

Permalink
manager ignore *.hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dasbd72 committed Sep 24, 2023
1 parent 4adb36a commit e8db67a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manager-go/cmd/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ func handleFileEvents() {
}

func handleFileEvent(event rfsnotify.Event, lru *filelru.LRU) error {
// Ignore if file is *.hash
if len(event.Name) > 5 && event.Name[len(event.Name)-5:] == ".hash" {
return nil
}

if event.Has(rfsnotify.Write) || event.Has(rfsnotify.Create) || event.Has(rfsnotify.Chmod) {
// push file to LRU if file is not directory
if fs, err := os.Stat(event.Name); err == nil && !fs.IsDir() {
Expand Down

0 comments on commit e8db67a

Please sign in to comment.