Implement FILEMAN:Copy(string fromPath, string toPath)

Copies a file from `fromPath` to `toPath`. Returns `true` if the file
was copied successfully.
This commit is contained in:
Martin Natano
2022-03-13 12:37:11 -07:00
committed by teejusb
parent 67d1c78450
commit 1036d20e11
4 changed files with 46 additions and 8 deletions
+4
View File
@@ -4848,6 +4848,10 @@ prev_note_name, succeeded = options:NoteSkin("cel")
<Description>
This singleton is accessible to Lua via <code>FILEMAN</code>.
</Description>
<Function name='Copy' return='bool' arguments='string fromPath, string toPath'>
Copies a file from <code>fromPath</code> to <code>toPath</code>.
Returns <code>true</code> if the file was copied successfully.
</Function>
<Function name='DoesFileExist' return='bool' arguments='string sPath'>
Returns <code>true</code> if a file exists at <code>sPath</code>.
</Function>