开发者

How to move a file from one directory to another in NSFilesystem

开发者 https://www.devze.com 2023-03-24 18:30 出处:网络
As we move a xml filefrom our project,i.e using the code [self MoveFilesToMyDocFolder:@\"Config.xml\"]; and by the met开发者_StackOverflowhod

As we move a xml file from our project,i.e using the code [self MoveFilesToMyDocFolder:@"Config.xml"]; and by the met开发者_StackOverflowhod

- (void)MoveFilesToMyDocFolder:(NSString *)destfileName

similarly how can we move a xml file from one directory to another directory.


You can use moveItemAtPath:toPath:error: or copyItemAtPath:toPath:error:

Pl. refer this page.

0

精彩评论

暂无评论...
验证码 换一张
取 消