Skip to content
Browse files

added some xcode 4 files to the gitignore and filtered out non direct…

…ories from the list, mostly for the .DS_Store files
  • Loading branch information...
1 parent 855451d commit 10cc428a3b5f092163e8f496bdd923b147f53d64 @schlu schlu committed Mar 20, 2011
Showing with 7 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +4 −1 Classes/RootController.m
View
3 .gitignore
@@ -8,3 +8,6 @@ build/
*.pbxuser
*.perspective
*.perspectivev3
+
+*/xcuserdata/*
+*/project.xcworkspace/*
View
5 Classes/RootController.m
@@ -45,7 +45,10 @@ -(void) setupList {
NSEnumerator *e = [[fileManager contentsOfDirectoryAtPath:presoPath error:nil] objectEnumerator];
NSString *thisDir;
while ( (thisDir = [e nextObject]) ) {
- [self.list addObject:thisDir];
+ isDir=NO;
+ if ([fileManager fileExistsAtPath:[presoPath stringByAppendingPathComponent:thisDir] isDirectory:&isDir] && isDir) {
+ [self.list addObject:thisDir];
+ }
}
}
}

0 comments on commit 10cc428

Please sign in to comment.
Something went wrong with that request. Please try again.