From 91ef82841ce797aee6a06566f0edddc064656822 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 21 Dec 2019 14:29:07 +1300 Subject: Revert "Delete unused autoload function" This reverts commit e43249fbdf9b4a8a28c53271e832676ed5ef1c1e. --- vim/autoload/path.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vim/autoload/path.vim diff --git a/vim/autoload/path.vim b/vim/autoload/path.vim new file mode 100644 index 00000000..83102138 --- /dev/null +++ b/vim/autoload/path.vim @@ -0,0 +1,12 @@ +function! path#Create(name, ...) abort + if a:0 > 2 + echoerr 'Too many arguments' + endif + if isdirectory(a:name) + return 1 + endif + let name = a:name + let path = 'p' + let prot = a:0 == 1 && a:1 ? 0700 : 0755 + return mkdir(name, path, prot) +endfunction -- cgit v1.2.3