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:
parent
f5b97d43c9
commit
a34d742e36
1 changed files with 7 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue