filesystems - iOS: How do I rename a folder in the documents directory -
i'm not sure if silly question. if move file using -[nsfilemanger moveitematpath:topath:error:]
1 place e.g. /images/image.png
/otherimages/image.png
old directory /images
deleted automatically or still exist? also, if wanted rename images pictures done in ios or have move new path/url?
if move file using [nsfilemanager moveitematpath:topath:error:]
source directory won't deleted. if file, stay empty.
to rename directory, use same command, don't specify files. example:
nserror* error = [[nserror alloc] init]; [nsfilemanager moveitematpath:@"/images/" topath:@"/otherimages/" error:&error];
and directory renamed otherimages , keep contents.
Comments
Post a Comment