URL NSFileManager vs Path

Why are these URL methods, such as moveItemAtURL:toURL:error: of the NSFileManager class, recommended for Path methods such as moveItemAtPath:toPath:error: :?

+4
url ios nsfilemanager
May 04 '15 at 6:16
source share
1 answer

When NSURL objects are created, it also checks the path is correct, otherwise the object will not be created.

Paths are created, even if it is the wrong path. There are no checks.

+5
May 4 '15 at 6:25
source share
— -



All Articles