1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

bad nslog!

This commit is contained in:
Mitchell Livingston 2006-07-07 21:59:21 +00:00
parent b252a98c13
commit 8c8993ce97

View file

@ -1149,11 +1149,11 @@ static void sleepCallBack(void * controller, io_service_t y,
NSString * path = [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath];
//if folder cannot be found or the contents hasn't changed simply give up
NSArray * allFileNames;NSLog(@"first");
NSArray * allFileNames;
if (!(allFileNames = [[NSFileManager defaultManager] directoryContentsAtPath: path])
|| [allFileNames isEqualToArray: fAutoImportedNames])
return;
NSLog(@"here!");
//try to add files that haven't already been added
NSMutableArray * newFileNames = [NSMutableArray arrayWithArray: allFileNames];
[newFileNames removeObjectsInArray: fAutoImportedNames];