Ignore:
Timestamp:
Oct 30, 2009, 4:23:51 AM (13 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9440 r9443  
    23292329                tr_ptrArrayInsertSorted( &cleanFolders, s[i], compareLongestFirst );
    23302330        s = (char**) tr_ptrArrayPeek( &cleanFolders, &n );
    2331         for( i=0; i<n; ++i )
     2331        for( i=0; i<n; ++i ) {
     2332#ifdef SYS_DARWIN
     2333            char * dsStore = tr_buildPath( s[i], ".DS_Store", NULL );
     2334            fileFunc( dsStore );
     2335            tr_free( dsStore );
     2336#endif
    23322337            fileFunc( s[i] );
     2338        }
    23332339        tr_ptrArrayDestruct( &cleanFolders, NULL );
    23342340    }
Note: See TracChangeset for help on using the changeset viewer.