Changeset 13783


Ignore:
Timestamp:
Jan 9, 2013, 1:11:36 AM (8 years ago)
Author:
jordan
Message:

minor code simplification in torrent.c's deleteLocalData() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r13780 r13783  
    27662766        {
    27672767            char * target = tr_buildPath (tmpdir, tor->info.files[f].name, NULL);
    2768             char * target_dir = tr_dirname (target);
    2769             tr_mkdirp (target_dir, 0777);
    2770             rename (filename, target);
     2768            tr_moveFile (filename, target, NULL);
    27712769            tr_ptrArrayAppend (&files, target);
    2772             tr_free (target_dir);
    27732770            tr_free (filename);
    27742771        }
Note: See TracChangeset for help on using the changeset viewer.