From 9d45f3a05b94f195aaaa1926f23c32234afcd5d6 Mon Sep 17 00:00:00 2001 From: vspader Date: Thu, 13 Mar 2008 00:55:37 +0000 Subject: [PATCH] Hide hidden files in file tree. --- FileTreeWindow/DirectoryNode.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FileTreeWindow/DirectoryNode.m b/FileTreeWindow/DirectoryNode.m index b16cf5e5f..5ee47ce52 100644 --- a/FileTreeWindow/DirectoryNode.m +++ b/FileTreeWindow/DirectoryNode.m @@ -25,7 +25,8 @@ for (NSString *s in contents) { - [fullPaths addObject:[[url path] stringByAppendingPathComponent: s]]; + if (![s hasPrefix:@"."]) + [fullPaths addObject:[[url path] stringByAppendingPathComponent: s]]; } [self processPaths: fullPaths];