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

Function getShare

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

Source from the content-addressed store, hash-verified

17}
18
19function getShare(path)
20{
21 path = posixPath(path);
22
23 return app.extract(/^[a-z0-9]+\:\/\/?[^\/\\]+\/([^\/\\]+)/, path, 1);
24}
25
26function getPath(path)
27{

Callers 1

clientFunction · 0.85

Calls 1

posixPathFunction · 0.70

Tested by

no test coverage detected