MCPcopy Create free account
hub / github.com/denoland/std / toPathString

Function toPathString

fs/_to_path_string.ts:13–17  ·  view source on GitHub ↗
(
  pathUrl: string | URL,
)

Source from the content-addressed store, hash-verified

11 * @returns The path as a string.
12 */
13export function toPathString(
14 pathUrl: string | URL,
15): string {
16 return pathUrl instanceof URL ? fromFileUrl(pathUrl) : pathUrl;
17}

Callers 15

ensureLinkFunction · 0.90
ensureLinkSyncFunction · 0.90
createWalkEntrySyncFunction · 0.90
createWalkEntryFunction · 0.90
copyDirFunction · 0.90
copyDirSyncFunction · 0.90
copyFunction · 0.90
copySyncFunction · 0.90
expandGlobFunction · 0.90
expandGlobSyncFunction · 0.90
emptyDirFunction · 0.90
emptyDirSyncFunction · 0.90

Calls 1

fromFileUrlFunction · 0.50

Tested by

no test coverage detected