feat: add makeParent options to addChild

This commit is contained in:
wancat committed 2023-08-21 22:22:01 +08:00
1 parent ba610a3fc5
commit fd26be5e64
3 files changed
+44 -6

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
export function dirname(path) {
const parts = path.split('/')
parts.pop()
return parts.join('/')
}
export function basename(path) {
const parts = path.split('/')
return parts.pop()
}