mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: add makeParent options to addChild
This commit is contained in:
1 parent
ba610a3fc5
commit
fd26be5e64
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