about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 51c547b..cd79c49 100644
--- a/reference.md
+++ b/reference.md
@@ -365,13 +365,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).
d=7ebaf44897c0e2b0229654cc110b751f54275edb'>^
d2b45dbe8 ^
a6f90d4cd ^
d2b45dbe8 ^

a6f90d4cd ^
d2b45dbe8 ^
a6f90d4cd ^

a6f90d4cd ^




728328eec ^

a6f90d4cd ^









cd83cc81a ^

a6f90d4cd ^







dce8d3d1a ^

a6f90d4cd ^








a64f03230 ^



a6f90d4cd ^










a6f90d4cd ^




d2b45dbe8 ^

a6f90d4cd ^






d2b45dbe8 ^
a6f90d4cd ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128