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

Function assertValidPath

tar/tar_stream.ts:679–682  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

677 * ```
678 */
679export function assertValidPath(path: string): void {
680 const buffer = new Uint8Array(512);
681 parsePath(new TextEncoder().encodeInto(path, buffer).written, buffer);
682}
683
684/**
685 * Asserts that the linkname provided is valid for a {@linkcode TarStream}.

Callers 1

tar_stream_test.tsFile · 0.90

Calls 1

parsePathFunction · 0.85

Tested by

no test coverage detected