MCPcopy Create free account
hub / github.com/TruthHun/BookStack / splitPath

Function splitPath

static/word2md/mammoth.browser.js:3880–3890  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

3878}
3879
3880function splitPath(path) {
3881 var lastIndex = path.lastIndexOf("/");
3882 if (lastIndex === -1) {
3883 return {dirname: "", basename: path};
3884 } else {
3885 return {
3886 dirname: path.substring(0, lastIndex),
3887 basename: path.substring(lastIndex + 1)
3888 };
3889 }
3890}
3891
3892function joinPath() {
3893 var nonEmptyPaths = Array.prototype.filter.call(arguments, function(path) {

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected