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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -