Pārlūkot izejas kodu

fix: mkdir if not exists when creating a new graph

Tienson Qin 3 gadi atpakaļ
vecāks
revīzija
a2073c2ace
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/main/frontend/mobile/graph_picker.cljs

+ 1 - 1
src/main/frontend/mobile/graph_picker.cljs

@@ -59,7 +59,7 @@
                                                  (state/get-local-container-root-url))]
                                                  (state/get-local-container-root-url))]
                                  (-> (validate-graph-dirname root graph-name)
                                  (-> (validate-graph-dirname root graph-name)
                                      (p/then (fn [graph-path]
                                      (p/then (fn [graph-path]
-                                               (-> (fs/mkdir! graph-path)
+                                               (-> (fs/mkdir-if-not-exists graph-path)
                                                    (p/then
                                                    (p/then
                                                     (fn []
                                                     (fn []
                                                       (web-nfs/ls-dir-files-with-path!
                                                       (web-nfs/ls-dir-files-with-path!