aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/path.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/autoload/path.vim')
-rw-r--r--vim/autoload/path.vim14
1 files changed, 0 insertions, 14 deletions
diff --git a/vim/autoload/path.vim b/vim/autoload/path.vim
deleted file mode 100644
index 54aacbc2..00000000
--- a/vim/autoload/path.vim
+++ /dev/null
@@ -1,14 +0,0 @@
-" Create all the directories needed for a path, with optional flag for
-" owner-only permissions
-function! path#Create(name, ...) abort
- if a:0 > 2
- echoerr 'Too many arguments'
- endif
- let name = fnamemodify(a:name, ':p')
- if isdirectory(name)
- return 1
- endif
- let path = 'p'
- let prot = a:0 == 1 && a:1 ? 0700 : 0755
- return mkdir(name, path, prot)
-endfunction