MCPcopy
hub / github.com/ollm/OpenComic / posixPath

Function posixPath

scripts/server-client.js:69–73  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

67}
68
69function posixPath(path)
70{
71 path = path.split(p.sep).join(p.posix.sep);
72 return path.replace(/^(?:\.[\/\\]+)?([a-z0-9]+)\:[\/\\]{1,2}/, '$1://');
73}
74
75function fixPath(path)
76{

Callers 9

getHostFunction · 0.70
getBaseUrlFunction · 0.70
getShareFunction · 0.70
getPathFunction · 0.70
getPathWithoutShareFunction · 0.70
getPortFunction · 0.70
getAdressFunction · 0.70
getTypeAdressFunction · 0.70
clientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected