Switch to upper case DIR /Q, in true DOS fashion

This commit is contained in:
Phil Runninger 2015-11-12 21:38:22 -05:00
parent f1af61ddf7
commit 3fb18e7399

View File

@ -217,7 +217,7 @@ endfunction
function! NERDTreeListNodeWin32()
let treenode = g:NERDTreeFileNode.GetSelected()
if treenode != {}
let metadata = split(system('dir /q ' . shellescape(treenode.path.str()) . ' | FINDSTR "^[012][0-9]/[0-3][0-9]/[12][0-9][0-9][0-9]"'), '\n')
let metadata = split(system('DIR /Q ' . shellescape(treenode.path.str()) . ' | FINDSTR "^[012][0-9]/[0-3][0-9]/[12][0-9][0-9][0-9]"'), '\n')
call s:echo(metadata[0])
else
call s:echo("No information avaialable")