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

x/path/mod.ts>Path#findLastValidNode

better path handling for Deno
Latest
method Path.prototype.findLastValidNode
Re-export
import { Path } from "https://deno.land/x/path@v3.0.0/mod.ts";

finds the first valid node walking a path from the right

Parameters

optional
ignoreFiles: boolean

if set files will be ignored on the resolution

Returns

Promise<Path>

a new Path object with a Path object until the valid node