Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>isdirectory

๐Ÿ“š Standard module for denops.vim
Go to Latest
function isdirectory
import { isdirectory } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

The result is a Number, which is TRUE when a directory with the name {directory} exists. If {directory} doesn't exist, or isn't a directory, the result is FALSE. {directory} is any expression, which is used as a String.

Can also be used as a method:

GetName()->isdirectory()

Parameters

denops: Denops
directory: unknown

Returns

Promise<number>