Ignore:
Timestamp:
Oct 21, 2009, 5:03:10 AM (13 years ago)
Author:
charles
Message:

(trunk libT) add a couple of hooks for the mac client to use when migrating from its earlier move-on-complete code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9340 r9341  
    582582            tor->downloadDir = tr_strdup( dir );
    583583
     584    if( tr_ctorGetIncompleteDir( ctor, &dir ) )
     585        dir = tr_sessionGetIncompleteDir( session );
    584586    if( tr_sessionIsIncompleteDirEnabled( session ) )
    585         tor->incompleteDir = tr_strdup( tr_sessionGetIncompleteDir( session ) );
     587        tor->incompleteDir = tr_strdup( dir );
    586588
    587589    tor->lastPieceSize = info->totalSize % info->pieceSize;
     
    793795    return tor->downloadDir;
    794796}
     797
     798const char *
     799tr_torrentGetCurrentDir( const tr_torrent * tor )
     800{
     801    assert( tr_isTorrent( tor  ) );
     802
     803    return tor->currentDir;
     804}
     805
    795806
    796807void
Note: See TracChangeset for help on using the changeset viewer.