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

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

better path handling for Deno
Latest
method Path.prototype.findLastValidNodeSync
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 synchronously

Parameters

optional
ignoreFiles: boolean

if set files will be ignored on the resolution

Returns

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