Skip to content

Commit

Permalink
Add :default case for directory? (fixes weavejester#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi committed Feb 20, 2017
1 parent 7b57ec8 commit 020c049
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/resauce/core.clj
Expand Up @@ -38,6 +38,9 @@
entry (.getEntry jar (add-ending-slash path))]
(and entry (.isDirectory entry))))

(defmethod directory? :default [url]
false)

(defmulti url-dir
"Return a list of URLs contained by this URL, if the protocol supports it."
{:arglists '([url])}
Expand Down

0 comments on commit 020c049

Please sign in to comment.