From 6f95a057d045e7a553afe770e8b9a9a86473817c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 22 Jan 2009 21:43:46 +0000 Subject: [PATCH] (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 --- libtransmission/torrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index a19d10381..ec1e340a7 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 );