(path)
| 34 | } |
| 35 | |
| 36 | function 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 | |
| 46 | async function ply_storage_resolve_root(root_path) { |
| 47 | if (!navigator.storage || !navigator.storage.getDirectory) { |
no outgoing calls
no test coverage detected