MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / encodeFilePath

Function encodeFilePath

lib/utils/webdav.ts:103–110  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

101}
102
103function encodeFilePath(filePath: string) {
104 const encoded = encodeURIComponent(filePath)
105 .replace(/%2F/g, '/')
106 .replace(/'/g, '%27')
107 .replace(/\(/g, '%28')
108 .replace(/\)/g, '%29');
109 return encoded;
110}
111
112async function getFilePaths(
113 path: string,

Callers 1

buildPropFindResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected