mirror of
https://github.com/janet-lang/janet
synced 2025-11-07 02:53:02 +00:00
Address issue #78
(file/open path :r+) should help. On windows, result is unknown as of now.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user