I use the following methods to get the visibility of files in the file
system, but still some file some up in my list that do not show up in
the Finder. Any suggestions to get results more like the Finder gives?
...
NSMutableArray *pathCont = [NSMutableArray arrayWithArray:[fileMan
contentsOfDirectoryAtPath:path error:&fmErr]];
if ([pathCont containsObject:@".hidden"]) {
NSArray *hiddenList = [[NSString stringWithContentsOfFile: [path
stringByAppendingPathComponent:@".hidden"]]
componentsSeparatedByString: @"\n"];
[pathCont removeObjectsInArray: hiddenList];
}
int i;
for (i = 0; i < [pathCont count]; i++) {
NSString *aFile = [pathCont objectAtIndex:i];
if ([self isVisible:aFile])
// code
}
...