NSString *filePath = @"/aaa/vvv/file.zip";
NSString *dstPath = @"/ddd/eee/folder";
[fm moveItemAtPath:filePath toPath:dstPath error:&error]; //ERROR: NSCocoaErrorDomain Code=516, file exists!
//This means you wanna rename the file.zip->folder!
[fm moveItemAtPath:filePath toPath:[to stringByAppendingPathComponent:[filePath lastPathComponent]] error:&error]; //Move!!
iOS-Bug:moveItemAtPath
最新推荐文章于 2020-04-26 11:53:11 发布