code: function allPaths (splitPath, partialPath, finalPaths, i) {
    i = i || 0
    finalPaths = finalPaths || []
    partialPath = (partialPath || '') + splitPath[i]
  
    if (i >= splitPath.length - 1) {
      finalPaths.push(partialPath)
    } else {
      allPaths(splitPath, partialPath + '/', finalPaths, i + 1)
      allPaths(splitPath, partialPath + '\\', finalPaths, i + 1)
    }
  
    return finalPaths
  }
docs: recursively walk all combinations of paths: /foo/bar/hello.md \foo\bar\hello.md ... etc.