Improvements
This commit is contained in:
parent
b51f14aa7b
commit
95288801e9
8
dir.go
8
dir.go
@ -124,9 +124,11 @@ func (vd *verDir) removeDir(name string) error {
|
||||
ver = ver.parent
|
||||
}
|
||||
|
||||
if ver != nil {
|
||||
ver.meta.removeNode(node.path)
|
||||
delete(vd.dirs, name)
|
||||
}
|
||||
|
||||
delete(vd.dirs, name)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -146,9 +148,11 @@ func (vd *verDir) removeFile(name string) error {
|
||||
ver = ver.parent
|
||||
}
|
||||
|
||||
if ver != nil {
|
||||
ver.meta.removeNode(node.path)
|
||||
delete(vd.files, name)
|
||||
}
|
||||
|
||||
delete(vd.files, name)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user