(root, filePath)
| 232 | } |
| 233 | |
| 234 | function makeHref(root, filePath) { |
| 235 | const nameSplit = path.relative(root, filePath).split(path.sep) |
| 236 | if (nameSplit.slice(-1)[0] === 'index.md') { |
| 237 | nameSplit.pop() |
| 238 | } else { |
| 239 | nameSplit.push(nameSplit.pop().replace(/\.md$/, '')) |
| 240 | } |
| 241 | return '/' + nameSplit.join('/') |
| 242 | } |
| 243 | |
| 244 | function moveFolder(oldPath, newPath, files, opts) { |
| 245 | const { verbose, git: useGit } = opts |
no outgoing calls
no test coverage detected