Ignore:
Timestamp:
Mar 3, 2011, 7:59:12 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) add an "existing dir" argument to tr_fdFileCheckout().

existing_dir: An ancestor of filename which must already exist and won't be created by tr_fdFileCheckout(). In implementation this is the download directory and prevents directories from being created in error, such as a mount point for an external drive when the drive is unplugged.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.h

    r11709 r12076  
    6161 * Converts a piece index + offset into a file index + offset.
    6262 */
    63 void     tr_ioFindFileLocation( const tr_torrent * tor,
    64                                 tr_piece_index_t   pieceIndex,
    65                                 uint32_t           pieceOffset,
    66                                 tr_file_index_t * fileIndex,
    67                                 uint64_t *        fileOffset );
     63void tr_ioFindFileLocation( const tr_torrent * tor,
     64                             tr_piece_index_t   pieceIndex,
     65                             uint32_t           pieceOffset,
     66                             tr_file_index_t  * fileIndex,
     67                             uint64_t         * fileOffset );
    6868
    6969
Note: See TracChangeset for help on using the changeset viewer.