Skip to content

Commit

Permalink
Merge pull request #28 from hyperledger/cifs-fs
Browse files Browse the repository at this point in the history
Evaluate all FS events: SMB CIFS filesystems mounted do not notify `CREATE`
  • Loading branch information
nguyer authored Oct 18, 2022
2 parents 735902c + f32d5ae commit b2bfd40
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/fswallet/fslistener.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ func (w *fsWallet) fsListenerLoop(ctx context.Context, done func(), events chan
case event, ok := <-events:
if ok {
log.L(ctx).Tracef("FSEvent [%s]: %s", event.Op, event.Name)
if event.Op == fsnotify.Create {
fi, err := os.Stat(event.Name)
if err == nil {
w.notifyNewFiles(ctx, fi)
}
fi, err := os.Stat(event.Name)
if err == nil {
w.notifyNewFiles(ctx, fi)
}
}
case err, ok := <-errors:
Expand Down

0 comments on commit b2bfd40

Please sign in to comment.