1
2
3
4
5
6
7
8
9
10
11
12
Index: /Users/soryu/Library/Application Support/TextMate/Support/lib/textmate.rb
===================================================================
--- /Users/soryu/Library/Application Support/TextMate/Support/lib/textmate.rb   (revision 7278)
+++ /Users/soryu/Library/Application Support/TextMate/Support/lib/textmate.rb   (working copy)
@@ -103,6 +103,7 @@
   end
 
   def TextMate.scan_dir (dir, block, filter)
+    return if !File.executable?(dir)
     Dir.entries(dir).each do |filename|
       fullpath = File.join(dir, filename)
       if(filter.skip?(fullpath)) then