We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0966b86 commit b660af1Copy full SHA for b660af1
autoload/dirvish.vim
@@ -414,6 +414,12 @@ func! s:buf_render(dir, lastpath) abort
414
endif
415
" Place cursor on the tail (last path segment).
416
call search('\'.s:sep.'\zs[^\'.s:sep.']\+\'.s:sep.'\?$', 'c', line('.'))
417
+
418
+ " TRICK: From :help getfperm(): "If the directory cannot be read, empty string is returned."
419
+ " This misses the "--x" case (no "r" access), but it's the best we have.
420
+ if empty(getline(1)) && '' ==# getfperm(a:dir . '/.')
421
+ call s:msg_error(printf('cannot list directory (permissions: %s): %s', getfperm(a:dir), a:dir))
422
+ endif
423
endf
424
425
func! s:apply_icons() abort
0 commit comments