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

x/libpkgx/mod.ts>Path#parent

bringing the entire open source ecosystem to your node and deno apps
Very Popular
Go to Latest
method Path.prototype.parent
Re-export
import { Path } from "https://deno.land/x/libpkgx@v0.15.2/mod.ts";

Returns the parent directory for this path. Path is not aware of the nature of the underlying file, but this is irrlevant since the operation is the same irrespective of this fact. - Note: always returns a valid path, Path.root.parentis* Path.root.