MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / ply_storage_split_path

Function ply_storage_split_path

js/storage.js:36–44  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

34}
35
36function ply_storage_split_path(path) {
37 var parts = path.split('/').filter(function (part) {
38 return part.length > 0;
39 });
40 if (parts.length === 0) {
41 throw new Error("Invalid storage path");
42 }
43 return parts;
44}
45
46async function ply_storage_resolve_root(root_path) {
47 if (!navigator.storage || !navigator.storage.getDirectory) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected