问题
Say I have created a few Directories in IsolatedStorage. Here are my problems:
1) How do I change the name of the Directory in IsoloatedStorage?
2) What happens to the files stored in the directory which I have change the name.
3) How do I change the file name that stored in Isolatedstorage Example :
MyCity.txt to FunCity.txt
Thanks
回答1:
You'll have to copy the files and write them again with a new name as described in this post. You can then delete the old file/directory using the DeleteFile or DeleteDirectory methods.
If you're creating a Mango app, then you have access to the MoveFile and MoveDirectory methods.
来源:https://stackoverflow.com/questions/6222222/how-to-change-directory-name-and-file-name-in-isolatedstorage