Files
linux-odyssey/packages/file-graph/utils.js
T

11 lines
194 B
JavaScript

export function dirname(path) {
const parts = path.split('/')
parts.pop()
return parts.join('/')
}
export function basename(path) {
const parts = path.split('/')
return parts.pop()
}