Skip to content

Commit

Permalink
Update pkg/sync/file/filepath_sync.go
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <toddbaert@gmail.com>
  • Loading branch information
toddbaert committed Feb 1, 2023
1 parent 19396e0 commit 5a90da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sync/file/filepath_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (fs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error {

fs.Logger.Info(fmt.Sprintf("filepath event: %s %s", event.Name, event.Op.String()))

// event.Op is bitmask and some systems may send multiple operations at once
// event.Op is a bitmask and some systems may send multiple operations at once
// event.Has(...) checks that the bitmask contains the particular event (among others)
if event.Has(fsnotify.Create) || event.Has(fsnotify.Write) {
fs.sendDataSync(ctx, event, dataSync)
Expand Down

0 comments on commit 5a90da5

Please sign in to comment.