NSFileManager的URL与path
为什么像moveItemAtURL:toURL:error:
这样的path方法推荐使用像moveItemAtURL:toURL:error:
of NSFileManager
类的URL方法moveItemAtPath:toPath:error:
当创buildNSURL对象时,也会检查path是否有效,否则不会创build该对象。
即使path无效,也会创buildpath。 根本没有检查。
为什么像moveItemAtURL:toURL:error:
这样的path方法推荐使用像moveItemAtURL:toURL:error:
of NSFileManager
类的URL方法moveItemAtPath:toPath:error:
当创buildNSURL对象时,也会检查path是否有效,否则不会创build该对象。
即使path无效,也会创buildpath。 根本没有检查。