复制目录&子目录

时间:2013-04-18 14:36:25

标签: objective-c cocoa nsfilemanager

我有一个像这样的文件夹结构,

Folder 1  
     Folder 11 
       Folder 111 
       ... Some files .... 
     Folder 12 
       Folder 121 
       ... Some files .... 
     Folder 13 
     .... Some Files ... 

Folder 2 

现在以编程方式我必须将整个Folder1复制到文件夹2

我试过了,

bool success = [[NSFileManager defaultManager] copyItemAtPath:Folder1Path toPath:Folder2Path error:nil];

但它只在folder2中创建了Folder1,

无法递归复制子目录

0 个答案:

没有答案