Revision: 7742
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7742&view=rev
Author:   hofman
Date:     2012-10-26 11:35:49 +0000 (Fri, 26 Oct 2012)
Log Message:
-----------
no need to skim directories starting with period explicitly, they are already 
skipped due to the options

Modified Paths:
--------------
    trunk/SKDocumentController.m

Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m        2012-10-22 11:57:06 UTC (rev 7741)
+++ trunk/SKDocumentController.m        2012-10-26 11:35:49 UTC (rev 7742)
@@ -352,20 +352,14 @@
         NSError *error = nil;
         NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager]
                        enumeratorAtURL:absoluteURL
-            includingPropertiesForKeys:[NSArray arrayWithObjects:NSURLNameKey, 
NSURLIsDirectoryKey, nil]
+            includingPropertiesForKeys:nil
                                options:NSDirectoryEnumerationSkipsHiddenFiles 
| NSDirectoryEnumerationSkipsPackageDescendants
                           errorHandler:nil];
         NSMutableArray *urls = [NSMutableArray array];
         BOOL failed = NO;
         
         for (NSURL *url in dirEnum) {
-            NSString *fileName;
-            NSNumber *isDirectory;
-            [url getResourceValue:&fileName forKey:NSURLIsDirectoryKey 
error:NULL];
-            [url getResourceValue:&isDirectory forKey:NSURLIsDirectoryKey 
error:NULL];
-            if ([isDirectory boolValue] && [fileName hasPrefix:@"."])
-                [dirEnum skipDescendants];
-            else if ([self documentClassForContentsOfURL:url])
+            if ([self documentClassForContentsOfURL:url])
                 [urls addObject:url];
         }
         

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to