Skip to content

Commit

Permalink
handle the cases that scandir returns #f. fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
isamert committed Jul 5, 2019
1 parent cc837c9 commit 80d6283
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions jaro
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@
(define (system-binary-list)
(append-map
(λ (path)
(scandir path
(λ (file)
(let ((abspath (path-join path file)))
(and (file-exists? abspath) (not (file-is-directory? abspath)))))))
(string-split (getenv "PATH") #\:)))
(or (scandir path
(λ (file)
(let ((abspath (path-join path file)))
(and (file-exists? abspath) (not (file-is-directory? abspath))))))
'()))
(string-split (getenv "PATH") #\:)))

(define (read-ini-value file group key)
(define current-group #f)
Expand Down

0 comments on commit 80d6283

Please sign in to comment.