diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-16 01:22:54 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-16 01:29:15 +1200 |
commit | 3f52145bbedc8d291567d41e29805c6bd5d3a467 (patch) | |
tree | 73d2ab8dcf5d6efbfd47c21615eb92931da8c92a /vim/autoload | |
parent | Switch XDG semantics to functions not global var (diff) | |
download | dotfiles-3f52145bbedc8d291567d41e29805c6bd5d3a467.tar.gz dotfiles-3f52145bbedc8d291567d41e29805c6bd5d3a467.zip |
Write out over-engineered path creation function
Diffstat (limited to 'vim/autoload')
-rw-r--r-- | vim/autoload/path.vim | 14 |
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 |