mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 19:40:11 +08:00
feat: add makeParent options to addChild
This commit is contained in:
1 parent
781e01d43a
commit
1778780364
3 files changed
+44
-6
No files matched your search
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user