mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-27 00:30:27 +00:00
visitor pattern
This commit is contained in:
parent
c8c5616b53
commit
17374843eb
4 changed files with 93 additions and 57 deletions
1
parse.go
1
parse.go
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue