Back

RenameFolder

Hello World

Renames a folder on the local filesystem.

app.RenameFolder( source, destination )

This method can also be used to move a folder to a whole other destination.

See Also: MakeFolder, CopyFolder, DeleteFolder

Example - Rename

function OnStart()
{
    app.RenameFolder( "/sdcard/MyFolder", "/sdcard/YourFolder" );
}
    Copy     Copy All       Run      

Example - Move

function OnStart()
{
    app.RenameFolder( "/sdcard/MyFolder", "/sdcard/DroidScript/MyFolder" );
}
    Copy     Copy All       Run      
string: path to file or folder ( “/absolute/...” or “relative/...” )