(trunk libT) when deleting a torrent's local data -- folders and files -- use remove() instead of unlink() because the former handles both folders and files gracefully

This commit is contained in:
Charles Kerr 2009-01-22 21:43:46 +00:00
parent 33aab046f5
commit 6f95a057d0
1 changed files with 1 additions and 1 deletions

View File

@ -1898,7 +1898,7 @@ void
tr_torrentDeleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
{
if( fileFunc == NULL )
fileFunc = unlink;
fileFunc = remove;
/* close all the files because we're about to delete them */
tr_torrentCloseLocalFiles( tor );