about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-12-18 12:38:12 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-12-18 12:38:12 -0800
commit02966ebb0bd421ed22687e52080e1c7387e93614 (patch)
treeee3200deaab99aa6e99561635d1114d4dea40d24
parentaa4d80f157a46eccaf8d6f85033142e44e958e96 (diff)
parent445ce2d2202db520c71b395dca591e31e56df2d3 (diff)
downloadtext.love-02966ebb0bd421ed22687e52080e1c7387e93614.tar.gz
Merge lines.love
-rw-r--r--app.lua1
-rw-r--r--reference.md9
2 files changed, 7 insertions, 3 deletions
diff --git a/app.lua b/app.lua
index 271fdc3..725d380 100644
--- a/app.lua
+++ b/app.lua
@@ -510,6 +510,7 @@ function App.disable_tests()
         return --[[status]] true
       end
   App.files = nativefs.getDirectoryItems
+  App.file_info = nativefs.getInfo
   App.mkdir = nativefs.createDirectory
   App.remove = nativefs.remove
   App.source_dir = love.filesystem.getSource()..'/'  -- '/' should work even on Windows
diff --git a/reference.md b/reference.md
index 7758cf1..4ef06a5 100644
--- a/reference.md
+++ b/reference.md
@@ -354,13 +354,16 @@ The following facilities help set these things up:
   available under `dir`.
   (From [LÖVE](https://love2d.org/wiki/love.filesystem.getDirectoryItems).]
 
-* `love.filesystem.getInfo(filename)` -- returns some information about
+* `App.file_info(filename)` -- returns some information about
   `filename`, particularly whether it exists (non-`nil` return value) or not.
   (From [LÖVE](https://love2d.org/wiki/love.filesystem.getInfo).]
 
-* `os.remove(filename)` -- removes a file or empty directory. Definitely make
+* `App.mkdir(path)` -- creates a directory. Make sure `path` is absolute.
+  (From [LÖVE](https://love2d.org/wiki/love.filesystem.remove).]
+
+* `App.remove(filename)` -- removes a file or empty directory. Definitely make
   sure `filename` is an absolute path.
-  (From [Lua](https://www.lua.org/manual/5.1/manual.html#pdf-os.remove).)
+  (From [LÖVE](https://love2d.org/wiki/love.filesystem.remove).]
 
 There's much more I could include here; check out [the LÖVE manual](https://love2d.org/wiki/love.filesystem)
 and [the Lua manual](https://www.lua.org/manual/5.1/manual.html#5.7).