* @callback: the callback invoked when the renaming finishes, or NULL
* @callback_data: the pointer to pass in the callback's user_data arg
*
- * As a special case, renaming the root file in a torrent will allso
+ * As a special case, renaming the root file in a torrent will also
* update tr_info.name.
*
* EXAMPLES
NSDictionary * contextInfo = [@{ @"Nodes" : fFileList, @"CompletionHandler" : [[completionHandler copy] autorelease] } retain];
- tr_torrentRename(fHandle, [newName UTF8String], renameCallback, contextInfo);
+ tr_torrentRenamePath(fHandle, fInfo->name, [newName UTF8String], renameCallback, contextInfo);
}
- (void) renameFileNode: (FileListNode *) node withName: (NSString *) newName completionHandler: (void (^)(BOOL didRename)) completionHandler
NSDictionary * contextInfo = [@{ @"Nodes" : @[ node ], @"CompletionHandler" : [[completionHandler copy] autorelease] } retain];
- NSString * oldName = [[node path] stringByAppendingPathComponent: [node name]];
- tr_torrentRenamePath(fHandle, [oldName UTF8String], [newName UTF8String], renameCallback, contextInfo);
+ NSString * oldPath = [[node path] stringByAppendingPathComponent: [node name]];
+ tr_torrentRenamePath(fHandle, [oldPath UTF8String], [newName UTF8String], renameCallback, contextInfo);
}
- (CGFloat) progress