bool moveFile(string from, string to)
Moves and/or renames a file
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
from |
string The old path of the file |
to |
string The new path of the file |
Return
True on success, and false if the file did not exist or an error occurred
Examples
if (KioFileIO.getFileDetails('/home/kiosk/Documents/Test.txt').exists)
KioFileIO.moveFile('/home/kiosk/Documents/Test.txt', '/home/kiosk');
Requirements
KioWare OS (Linux®) version 1.0 or greater.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.