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 d4722bb commit 1536a9c
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 1536a9c

Please sign in to comment.