Improvements

This commit is contained in:
Alex Yatskov 2015-06-22 13:00:32 +09:00
parent b51f14aa7b
commit 95288801e9

8
dir.go
View File

@ -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
}