Ignore:
Timestamp:
Dec 9, 2008, 5:01:49 PM (12 years ago)
Author:
charles
Message:

(daemon) #1510: kysucix's patch to give an option to delete local data via RPC when removing a torrent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r7329 r7331  
    11991199
    12001200void
     1201tr_torrentDeleteLocalData( tr_torrent * tor )
     1202{
     1203    tr_file_index_t i;
     1204
     1205    for( i=0; i<tor->info.fileCount; ++i )
     1206    {
     1207        const tr_file * file = &tor->info.files[i];
     1208        char * path = tr_buildPath( tor->downloadDir, file->name, NULL );
     1209        tr_fdFileClose( path );
     1210        unlink( path );
     1211        tr_free( path );
     1212    }
     1213}
     1214
     1215void
    12011216tr_torrentStop( tr_torrent * tor )
    12021217{
Note: See TracChangeset for help on using the changeset viewer.