1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(trunk libT) OS X fix for tr_torrentDeleteLocalData() -- .DS_Store gave it trouble

This commit is contained in:
Charles Kerr 2009-10-30 04:23:51 +00:00
parent f5b97d43c9
commit a34d742e36

View file

@ -2328,8 +2328,14 @@ deleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
if( tr_ptrArrayFindSorted( &dirtyFolders, s[i], vstrcmp ) == NULL )
tr_ptrArrayInsertSorted( &cleanFolders, s[i], compareLongestFirst );
s = (char**) tr_ptrArrayPeek( &cleanFolders, &n );
for( i=0; i<n; ++i )
for( i=0; i<n; ++i ) {
#ifdef SYS_DARWIN
char * dsStore = tr_buildPath( s[i], ".DS_Store", NULL );
fileFunc( dsStore );
tr_free( dsStore );
#endif
fileFunc( s[i] );
}
tr_ptrArrayDestruct( &cleanFolders, NULL );
}