Skip to content

Commit

Permalink
Merge pull request #4 from sogaiu/files-and-dirs-only
Browse files Browse the repository at this point in the history
Only consider files and directories
  • Loading branch information
CFiggers authored Oct 11, 2023
2 parents f67ba90 + fb5130e commit 2ca5902
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.janet
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@
(find-all-janet-files (string path "/" entry) false results)))
:file
(when (or explicit (not= (basename path) "project.janet"))
(if (string/has-suffix? ".janet" path) (array/push results path)))
nil (array/push results [(string/format "could not read %q" path)]))
(if (string/has-suffix? ".janet" path) (array/push results path))))
results))

(deftest "test find-all-janet-files"
Expand Down

0 comments on commit 2ca5902

Please sign in to comment.