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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -