iphone - What is the difference between copyItemAtPath:toPath:error and copyItemAtURL:toURL:error: of NSFileManager? -
i want copy file @ path path b, in case exists @ b want overwritten , want use 1 of mentioned methods 1 one should use? saw documentation , pretty same.
i can make nsurl objects strings both same?
cocoa attempting standardize on urls. consistent use of urls can in cases improve performance, because nsurl object can cache information filesystem , avoid redundant io in case information requested again.
however, in context of 1 method itself, doesn't make difference.
Comments
Post a Comment