Skip to content
Browse files

make paths cache whether they are executable

  • Loading branch information...
1 parent efa7941 commit d56bf992d2b4a5a22dcd26298880ed532c473182 @scrooloose committed Jun 21, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/NERD_tree.vim
View
5 plugin/NERD_tree.vim
@@ -1169,6 +1169,11 @@ function! s:oPath.ReadInfoFromDisk(fullpath) dict
throw "NERDTree.Path.InvalidArguments Exception: Invalid path = " . a:fullpath
endif
+ let self.isExecutable = 0
+ if !self.isDirectory
+ let self.isExecutable = getfperm(a:fullpath) =~ 'x'
+ endif
+
"grab the last part of the path (minus the trailing slash)
let lastPathComponent = self.GetLastPathComponent(0)

0 comments on commit d56bf99

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