Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
Corrected usage of public notify API
Browse files Browse the repository at this point in the history
  • Loading branch information
Zillode committed May 1, 2016
1 parent 5e515b7 commit d88d404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func watchFolder(folder FolderConfiguration, stInput chan STEvent) {
ignorePatterns := getIgnorePatterns(folder.ID)
fsInput := make(chan string)
c := make(chan notify.EventInfo, maxFiles)
notify.SetIgnoreTest(ignoreTest(ignorePaths, ignorePatterns, folderPath))
notify.SetDoNotWatch(ignoreTest(ignorePaths, ignorePatterns, folderPath))
if err := notify.Watch(filepath.Join(folderPath, "..."), c,
notify.All); err != nil {
if strings.Contains(err.Error(), "too many open files") || strings.Contains(err.Error(), "no space left on device") {
Expand Down

0 comments on commit d88d404

Please sign in to comment.