feat: add merge function

Able to deal with:
1.  merge a subtree
This commit is contained in:
wancat committed 2023-08-21 22:22:01 +08:00
1 parent fd26be5e64
commit 7405f786a0
5 files changed
+114 -5

No files matched your search

+4 -2
View File
@@ -1,7 +1,9 @@
import { basename } from './utils'
export default class File {
constructor({ path, name, type, discovered }) {
constructor({ path, type, discovered }) {
this.path = path
this.name = name
this.name = basename(path)
this.type = type
this.discovered = discovered
}