Monday, 26 August 2013

iOS: How do I rename a folder in the documents directory

iOS: How do I rename a folder in the documents directory

I'm not sure if this is a silly question. If I move a file using
-[NSFileManger moveItemAtPath:toPath:error:] from one place e.g.
/Images/image.png to say /OtherImages/image.png will the old directory
/Images be deleted automatically or will it still exist? Also, if I wanted
to rename Images to Pictures could this be done in iOS or do I just have
to move everything to a new path/url?

No comments:

Post a Comment