Skip to content

Commit

Permalink
Use improved EventFilter instantiation
Browse files Browse the repository at this point in the history
This will use both the provided ignorefiles as well
as the ignore_files blacklist.
  • Loading branch information
Chris Saunders committed Jan 12, 2015
1 parent 90456d1 commit 58bf4e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/theme-manipulate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"flag"
"fmt"
"github.com/csaunders/phoenix"
"log"
"os"
"strings"
)
Expand Down Expand Up @@ -66,7 +65,7 @@ func main() {

config, err := phoenix.LoadConfigurationFromCurrentDirectory()
if err != nil {
log.Fatal(err)
phoenix.HaltAndCatchFire(err)
}

client := phoenix.NewThemeClient(config)
Expand Down
2 changes: 1 addition & 1 deletion cmd/theme-watch/file_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func convertFsEvents(events chan fsnotify.Event, filter phoenix.EventFilter) cha
func watchDirRecur(dir string, filter phoenix.EventFilter) (results chan phoenix.AssetEvent, err error) {
results = make(chan phoenix.AssetEvent)
err = filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
if info.IsDir() {
if info.IsDir() && !filter.MatchesFilter(path) {
channel, _ := watchDir(path, filter)
go func() {
for {
Expand Down

0 comments on commit 58bf4e8

Please sign in to comment.