Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
13
export
function
toPathString(
14
pathUrl: string | URL,
15
): string {
16
return
pathUrl instanceof URL ? fromFileUrl(pathUrl) : pathUrl;
17
}
Callers
15
ensureLink
Function · 0.90
ensureLinkSync
Function · 0.90
createWalkEntrySync
Function · 0.90
createWalkEntry
Function · 0.90
copyDir
Function · 0.90
copyDirSync
Function · 0.90
copy
Function · 0.90
copySync
Function · 0.90
expandGlob
Function · 0.90
expandGlobSync
Function · 0.90
emptyDir
Function · 0.90
emptyDirSync
Function · 0.90
Calls
1
fromFileUrl
Function · 0.50
Tested by
no test coverage detected