feat: add makeParent options to addChild

This commit is contained in:
wancat authored and Chen, Tai-Lin committed 2023-08-28 14:39:52 +08:00
1 parent 781e01d43a
commit 1778780364
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()
}