when removing a torrent, allow it to be backed up by time machine again

This commit is contained in:
Mitchell Livingston 2008-01-05 18:30:52 +00:00
parent 3ee2862d40
commit fbc7d6b827
1 changed files with 7 additions and 0 deletions

View File

@ -180,6 +180,13 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
- (void) closeRemoveTorrent
{
//allow the file to be index by Time Machine
if ([NSApp isOnLeopardOrBetter])
{
NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
CSBackupSetItemExcluded((CFURLRef)url, false, true);
}
tr_torrentRemoveSaved(fHandle);
tr_torrentClose(fHandle);
}