MCPcopy Create free account
hub / github.com/sql-js/sql.js / base

Function base

js/sql-debug.js:2686–2689  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

2684 return parent;
2685 }
2686 function base(path) {
2687 var parts = path.split('/');
2688 return parts[parts.length-1];
2689 }
2690 // We also accept FileList here, by using Array.prototype
2691 Array.prototype.forEach.call(mount.opts["files"] || [], function(file) {
2692 WORKERFS.createNode(ensureParent(file.name), base(file.name), WORKERFS.FILE_MODE, 0, file, file.lastModifiedDate);

Callers 1

sql-debug.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…