MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / dirname

Function dirname

packages/@contentlayer/utils/src/file-paths.ts:94–98  ·  view source on GitHub ↗
(
  path_: RelativePosixFilePath | AbsolutePosixFilePath,
)

Source from the content-addressed store, hash-verified

92export function dirname(path_: RelativePosixFilePath): RelativePosixFilePath
93export function dirname(path_: AbsolutePosixFilePath): AbsolutePosixFilePath
94export function dirname(
95 path_: RelativePosixFilePath | AbsolutePosixFilePath,
96): AbsolutePosixFilePath | RelativePosixFilePath {
97 return path.dirname(path_) as AbsolutePosixFilePath | RelativePosixFilePath
98}
99
100export function relative(from: AbsolutePosixFilePath, to: AbsolutePosixFilePath): RelativePosixFilePath
101export function relative(from: AbsolutePosixFilePath, to: string): RelativePosixFilePath

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…