mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
host.vim: s:GetManifestPath(): Create base directory if needed.
If the base directory does not exist, let mkdir(...,'p') create it.
This commit is contained in:
@@ -132,13 +132,13 @@ function! s:GetManifestPath() abort
|
||||
endif
|
||||
|
||||
let dest = fnamemodify(expand(dest), ':p')
|
||||
if !empty(dest) && isdirectory(dest)
|
||||
let dest .= 'nvim/'
|
||||
if !empty(dest) && !filereadable(dest)
|
||||
let dest .= ('/' ==# dest[-1:] ? '' : '/') . 'nvim'
|
||||
call mkdir(dest, 'p', 700)
|
||||
let manifest_base = dest
|
||||
endif
|
||||
|
||||
return manifest_base.'rplugin.vim'
|
||||
return manifest_base.'/rplugin.vim'
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user