I would like to rename a directory that I created on the SD card and thought I could easily do that through the File object (something like File.Rename). However, I don’t see something that easy. Do I have to copy all of the directory structure to a new directory with the new name, delete all the files in the old directory, and then delete the old directory to do this? Or is there an easy way that I don’t know about?
Share
You can use Phone.Shell to run the ‘mv’ command: