(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:
parent
33aab046f5
commit
6f95a057d0
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue