MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isFileUrl

Function isFileUrl

valdi/vscode_debugger/src/common/urlUtils.ts:353–355  ·  view source on GitHub ↗
(candidate: string)

Source from the content-addressed store, hash-verified

351 * Returns whether the string is a file UR
352 */
353export function isFileUrl(candidate: string): candidate is FileUrl {
354 return candidate.startsWith('file:///');
355}
356
357export function maybeAbsolutePathToFileUrl(
358 rootPath: string | undefined,

Callers 4

canMapPathFunction · 0.90
toggleSkippingFileFunction · 0.90
fileUrlToAbsolutePathFunction · 0.85
fileUrlToNetworkPathFunction · 0.85

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected