MCPcopy
hub / github.com/download-directory/download-directory.github.io / escapeFilepath

Function escapeFilepath

download.ts:5–7  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

3import authenticatedFetch from './authenticated-fetch.js';
4
5function escapeFilepath(path: string) {
6 return path.replaceAll('%', '%25').replaceAll('#', '%23');
7}
8
9async function maybeResponseLfs(response: Response): Promise<boolean> {
10 const length = Number(response.headers.get('content-length'));

Callers 1

fetchPublicFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected