feat: add merge function

Able to deal with:
1.  merge a subtree
This commit is contained in:
wancat authored and Chen, Tai-Lin committed 2023-08-28 14:39:52 +08:00
1 parent 1778780364
commit a66de4dfe1
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
}