Skip to main content
Module

x/ddc_vim/deps.ts>fn.filewritable

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

The result is a Number, which is 1 when a file with the name {file} exists, and can be written. If {file} doesn't exist, or is not writable, the result is 0. If {file} is a directory, and we can write to it, the result is 2. Can also be used as a |method|: GetName()->filewritable()

Parameters

denops: Denops
file: unknown

Returns

Promise<unknown>