Skip to main content
Module

x/ddc_vim/deps.ts>fn.mkdir

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.mkdir
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { mkdir } = fn;

Create directory {name}. If {path} is "p" then intermediate directories are created as necessary. Otherwise it must be "". If {prot} is given it is used to set the protection bits of the new directory. The default is 0o755 (rwxr-xr-x: r/w for the user, readable for others). Use 0o700 to make it unreadable for others. This is only used for the last part of {name}. Thus if you create /tmp/foo/bar then /tmp/foo will be created with 0o755. Example: :call mkdir($HOME . "/tmp/foo/bar", "p", 0o700) This function is not available in the |sandbox|. There is no error if the directory already exists and the "p" flag is passed (since patch 8.0.1708). However, without the "p" option the call will fail. The function result is a Number, which is TRUE if the call was successful or FALSE if the directory creation failed or partly failed. Not available on all systems. To check use: :if exists("*mkdir") Can also be used as a |method|: GetName()->mkdir()

Parameters

denops: Denops
name: unknown
optional
path: unknown
optional
prot: unknown

Returns

Promise<unknown>