1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-10-04 04:31:00 +00:00

visitor pattern

This commit is contained in:
thesayyn 2023-10-24 15:58:31 -07:00 committed by Vincent Batts
parent 739d74de3c
commit cc12bd7a0b
4 changed files with 93 additions and 57 deletions

View file

@ -58,6 +58,7 @@ func ParseSpec(r io.Reader) (*DirectoryHierarchy, error) {
e.Type = DotDotType
e.Raw = str
if creator.curDir != nil {
e.Parent = creator.curDir
creator.curDir = creator.curDir.Parent
}
// nothing else to do here