4

Why is that URL methods like moveItemAtURL:toURL:error: of NSFileManager class are recommended over Path methods like moveItemAtPath:toPath:error: ?

Vivek Molkar
  • 3,910
  • 1
  • 34
  • 46
XiOS
  • 1,665
  • 2
  • 18
  • 22

1 Answers1

5

When NSURL objects are created it's also checked that the path is valid, otherwise the object is not created.

The path ones are created even if it's an invalid path. There are no checks made at all.

pteofil
  • 4,133
  • 17
  • 27