开发者

How to copy contents of a directory into a another directory programmatically in an iPhone app

开发者 https://www.devze.com 2023-03-24 23:07 出处:网络
I have 2 directories which are created programmatically, say DIR1 & DIR2 and DIR1 have some XML files now I need to copy the contents of DIR! into DIR2 without 开发者_高级运维giving the Contents n

I have 2 directories which are created programmatically, say DIR1 & DIR2 and DIR1 have some XML files now I need to copy the contents of DIR! into DIR2 without 开发者_高级运维giving the Contents name

is this possible?


You can use - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error method to copy. Refer this link. It will help you.

0

精彩评论

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