mirror of
https://github.com/preservim/nerdtree.git
synced 2024-10-18 13:50:21 +03:00
make paths cache whether they are executable
This commit is contained in:
parent
efa7941c54
commit
d56bf992d2
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user