make paths cache whether they are executable

This commit is contained in:
Martin Grenfell 2008-06-21 20:45:18 +12:00
parent efa7941c54
commit d56bf992d2

View File

@ -1169,6 +1169,11 @@ function! s:oPath.ReadInfoFromDisk(fullpath) dict
throw "NERDTree.Path.InvalidArguments Exception: Invalid path = " . a:fullpath throw "NERDTree.Path.InvalidArguments Exception: Invalid path = " . a:fullpath
endif 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) "grab the last part of the path (minus the trailing slash)
let lastPathComponent = self.GetLastPathComponent(0) let lastPathComponent = self.GetLastPathComponent(0)