bad nslog!
This commit is contained in:
parent
b252a98c13
commit
8c8993ce97
|
@ -1149,11 +1149,11 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
NSString * path = [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath];
|
NSString * path = [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath];
|
||||||
|
|
||||||
//if folder cannot be found or the contents hasn't changed simply give up
|
//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])
|
if (!(allFileNames = [[NSFileManager defaultManager] directoryContentsAtPath: path])
|
||||||
|| [allFileNames isEqualToArray: fAutoImportedNames])
|
|| [allFileNames isEqualToArray: fAutoImportedNames])
|
||||||
return;
|
return;
|
||||||
NSLog(@"here!");
|
|
||||||
//try to add files that haven't already been added
|
//try to add files that haven't already been added
|
||||||
NSMutableArray * newFileNames = [NSMutableArray arrayWithArray: allFileNames];
|
NSMutableArray * newFileNames = [NSMutableArray arrayWithArray: allFileNames];
|
||||||
[newFileNames removeObjectsInArray: fAutoImportedNames];
|
[newFileNames removeObjectsInArray: fAutoImportedNames];
|
||||||
|
|
Loading…
Reference in New Issue