mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-22 03:30:59 +00:00
allow mixed case disk image extensions
This commit is contained in:
parent
fd26ce35eb
commit
061ac16a0a
@ -62,7 +62,7 @@
|
||||
|
||||
- (void)loadDirectoryContents {
|
||||
NSArray *allFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:basePath error:NULL];
|
||||
diskImages = [allFiles pathsMatchingExtensions:[AppDelegate sharedInstance].diskImageExtensions];
|
||||
diskImages = [allFiles filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"%@ containsObject: pathExtension.lowercaseString", [AppDelegate sharedInstance].diskImageExtensions]];
|
||||
otherFiles = [allFiles filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(NSString* _Nonnull name, NSDictionary<NSString *,id> * _Nullable bindings) {
|
||||
BOOL isDiskImage = [diskImages containsObject:name];
|
||||
BOOL isDirectory;
|
||||
|
Loading…
Reference in New Issue
Block a user