Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.finddir

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.finddir
import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { finddir } = fn;

Find directory {name} in {path}. Supports both downwards and upwards recursive directory searches. See file-searching for the syntax of {path}.

Returns the path of the first found match. When the found directory is below the current directory a relative path is returned. Otherwise a full path is returned. If {path} is omitted or empty then 'path' is used.

If the optional {count} is given, find {count}'s occurrence of {name} in {path} instead of the first one. When {count} is negative return all the matches in a List.

Returns an empty string if the directory is not found.

This is quite similar to the ex-command :find.

Can also be used as a method:

GetName()->finddir()

Parameters

denops: Denops
name: unknown
optional
path: unknown
optional
count: unknown

Returns

Promise<string>