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
Post a Comment