objective c - Copy a directory including all contents and subdirectories -


i'm making mac app , i'm trying copy content , subdirectory of folder , paste another.
i've tried files being copied. there way that?
i'm using copyitematpath: api , here of code:

nsstring *partsfromstring = ksppartsfrompathstring; nsstring *partstostring = ksppartstopathstring;  nserror  *error  = nil; manager = [nsfilemanager defaultmanager];  bool result = [manager copyitematpath:partsfromstring topath:partstostring error:&error];  if (!result && error) {     nslog(@"there error copying file directory! %@", [error localizeddescription]); } 


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -