We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7de35a9 commit 2cbe2a7Copy full SHA for 2cbe2a7
docs/Runtime Environment/IO.md
@@ -38,6 +38,8 @@ print(io.part("/path/to/foo.txt", "name")) -- "foo.txt"
38
1. A string path or file stream.
39
#### Returns
40
A boolean indicating if the path led toward a directory.
41
+#### Errors
42
+Raises a Lua error if the given path didn't lead to anything.
43
```pluto
44
local path = "./dir/main/"
45
local bool = io.isdir(path)
@@ -53,6 +55,8 @@ end
53
55
54
56
57
A boolean indicating if the path led towards a file.
58
59
60
61
local path = "./isfile/file"
62
local bool = io.isfile(path)
0 commit comments