We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b26162 commit d75f877Copy full SHA for d75f877
1 file changed
src/viewers/HDSViewer/FormViewer.vb
@@ -49,6 +49,27 @@ Public Class FormViewer
49
End Sub
50
51
Private Sub LoadTree(tree As JsonObject, group As StreamGroup)
52
+ For Each dir As StreamGroup In group.dirs
53
+ Dim node As New JsonObject With {
54
+ .Id = dir.fileName,
55
+ .JsonType = JsonType.Object,
56
+ .Value = dir,
57
+ .Parent = tree
58
+ }
59
60
+ Call tree.Fields.Add(node)
61
+ Call LoadTree(node, dir)
62
+ Next
63
+
64
+ For Each file As StreamBlock In group.files
65
66
+ .Id = file.fileName,
67
+ .JsonType = JsonType.Value,
68
+ .Parent = tree,
69
+ .Value = file
70
71
72
73
74
75
End Class
0 commit comments