iOS-Bug:moveItemAtPath

    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)