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 9f73622 commit f8a3b9cCopy full SHA for f8a3b9c
docs/Runtime Environment/IO.md
@@ -14,15 +14,9 @@ Copy a file to another file, creating a new file if needed.
14
#### Parameters
15
1. A string path or file stream.
16
2. A path towards the file to copy into.
17
-#### Returns
18
-A boolean indicating if the file was successfully copied.
19
-```pluto
20
-if io.copy("./cfg/config.txt", "./backup_cfg/config.txt") then
21
- print("Successfully created a backup config!")
22
-else
23
- print("Failed to create a backup config.")
24
-end
25
-```
+#### Errors
+Raises a Lua error if the copy operation fails.
+
26
---
27
### `io.part`
28
Extracts the parts of a path.
0 commit comments