1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-24 22:23:15 +00:00

Address issue #78

(file/open path :r+) should help. On windows, result
is unknown as of now.
This commit is contained in:
Calvin Rose 2019-04-09 08:38:56 -04:00
parent 675c1030fd
commit 6c68c7a35f

View File

@ -1589,7 +1589,7 @@
(or (process/opts "JANET_PATH") ""))
(defn- fexists [path]
(def f (file/open path))
(def f (file/open path :r+))
(if f (do (file/close f) path)))
(defn module/find