found some clojure example
This commit is contained in:
parent
3385a41486
commit
9e3563d013
2 changed files with 6 additions and 0 deletions
|
@ -185,6 +185,7 @@
|
||||||
:else
|
:else
|
||||||
(recur (into (drop 1 paths)
|
(recur (into (drop 1 paths)
|
||||||
(map #(str path-to-work-with "/" %)
|
(map #(str path-to-work-with "/" %)
|
||||||
|
; Bsp-Code: https://github.com/clojure/java.classpath/blob/c10fc96a8ff98db4eb925a13ef0f5135ad8dacc6/src/main/clojure/clojure/java/classpath.clj#L50
|
||||||
(.list (io/file (.toString (:java-path resource-to-work-with)))))) ; TODO doesnt work in jars
|
(.list (io/file (.toString (:java-path resource-to-work-with)))))) ; TODO doesnt work in jars
|
||||||
result))))
|
result))))
|
||||||
result)))
|
result)))
|
||||||
|
|
|
@ -19,3 +19,8 @@ TODO: to solve reading from jars:
|
||||||
(into-array String '()))
|
(into-array String '()))
|
||||||
(into-array java.nio.file.LinkOption {}))
|
(into-array java.nio.file.LinkOption {}))
|
||||||
|
|
||||||
|
(some? (sut/resource-from-cp-or-fs
|
||||||
|
"not-existing-filesystem-path"
|
||||||
|
""
|
||||||
|
"dummy"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue