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-10 20:57:30 +01:00
committed by teejusb
parent 67d1c78450
commit 1036d20e11
4 changed files with 46 additions and 8 deletions
+1
View File
@@ -1592,6 +1592,7 @@
<Function name='destroy'/>
</Class>
<Class name='RageFileManager'>
<Function name='Copy'/>
<Function name='DoesFileExist'/>
<Function name='GetDirListing'/>
<Function name='GetFileSizeBytes'/>
+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>