mirror of
https://github.com/neovim/neovim.git
synced 2025-11-06 02:34:28 +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
|
endif
|
||||||
|
|
||||||
let dest = fnamemodify(expand(dest), ':p')
|
let dest = fnamemodify(expand(dest), ':p')
|
||||||
if !empty(dest) && isdirectory(dest)
|
if !empty(dest) && !filereadable(dest)
|
||||||
let dest .= 'nvim/'
|
let dest .= ('/' ==# dest[-1:] ? '' : '/') . 'nvim'
|
||||||
call mkdir(dest, 'p', 700)
|
call mkdir(dest, 'p', 700)
|
||||||
let manifest_base = dest
|
let manifest_base = dest
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return manifest_base.'rplugin.vim'
|
return manifest_base.'/rplugin.vim'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user