We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 726ec27 commit b17edeaCopy full SHA for b17edea
src/clj/cljs/util.clj
@@ -71,8 +71,9 @@
71
(let [relative-path (string/split (munge-path (str (:ns ns-info))) #"\.")
72
parents (cond-> (butlast relative-path)
73
target-dir (conj target-dir))]
74
- (io/file (io/file (to-path parents))
75
- (str (last relative-path) (str "." ext))))))
+ (cond->> (io/file (str (last relative-path) (str "." ext)))
+ (seq parents)
76
+ (io/file (to-path parents))))))
77
78
(defn mkdirs
79
"Create all parent directories for the passed file."
0 commit comments