Skip to content

Commit

Permalink
Ignore gif files in directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Oct 9, 2021
1 parent f65345b commit 4c5dd4b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sgf_to_gif.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,17 @@ func handle_directory(dirname string) error {
}

for _, item := range all {
full_path := filepath.Join(dirname, item.Name())

basename := item.Name()

if strings.HasSuffix(strings.ToLower(basename), ".gif") {
continue
}

full_path := filepath.Join(dirname, basename)

err := handle_file(full_path)

if err != nil {
fmt.Printf("%v: %v\n", item.Name(), err)
}
Expand Down

0 comments on commit 4c5dd4b

Please sign in to comment.