Changeset 958

Show
Ignore:
Timestamp:
11/14/09 07:43:21 (10 months ago)
Author:
gbooker
Message:

Don't need to resolve symlinks when checking whether to accept a file path since the filemanager routines will resolve them anyway. Additionally, re-ordered checks so it hits the disk less often and don't check for VIDEO_TS dirs since anything passing that test would have passed the directory test already.
Fixes #324

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireFrappliance/Extension/NSFileManager-Extensions.m

    r827 r958  
    120120                return NO; 
    121121         
    122         path = [path stringByResolvingSymlinksInPath]; 
    123         return ([self isDirectory:path] || [self hasVIDEO_TS:path] || [allExtensions containsObject:[path pathExtension]]); 
     122        return ([allExtensions containsObject:[path pathExtension]] || [self isDirectory:path]); 
    124123} 
    125124