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

x/path/src/Path.ts>Path#findLastValidNode

better path handling for Deno
Latest
method Path.prototype.findLastValidNode
import { Path } from "https://deno.land/x/path@v3.0.0/src/Path.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