mirror of
https://github.com/janet-lang/janet
synced 2024-11-29 03:19:54 +00:00
Address issue #78
(file/open path :r+) should help. On windows, result is unknown as of now.
This commit is contained in:
parent
675c1030fd
commit
6c68c7a35f
@ -1589,7 +1589,7 @@
|
|||||||
(or (process/opts "JANET_PATH") ""))
|
(or (process/opts "JANET_PATH") ""))
|
||||||
|
|
||||||
(defn- fexists [path]
|
(defn- fexists [path]
|
||||||
(def f (file/open path))
|
(def f (file/open path :r+))
|
||||||
(if f (do (file/close f) path)))
|
(if f (do (file/close f) path)))
|
||||||
|
|
||||||
(defn module/find
|
(defn module/find
|
||||||
|
Loading…
Reference in New Issue
Block a user