Notes
- Files or folders deleted using File.remove() and Diretory.remove() are deleted forever.
- Use this function to send them to the Recycle Bin instead.
sysutils.recyclebin.send(item)function
Sends a file or folder to the Recycle Bin.
Parameters
item
The file or directory to be send on the Recycle Bin, as astring, as a File, or as a Directory
Return value
Returns aboolean value indicating if the operation succeeded.
Example
--! luart-extensions
import sysutils
-- Delete the file "test.txt" by sending it to the Recycle Bin
sysutils.recyclebin.send("test.txt")