Folder tree does not show folder with duplicate name

+1 vote
asked Aug 1, 2013 in Bug by anonymous
This construct only shows folder c within folder a, whereas I would also expect to see it in folder b:
 
folder "a" {
 folder "c" {
}
}
 
folder "b" {
 folder "c" {
}
}
 
Also this construct does not get rendered:
folder "a" {
  folder "a" {
  }
}

 

1 Answer

0 votes
answered Feb 28, 2018 by Anthony-Gaudino (5,720 points)
That's because you can't use the same name for multiple nodes.

You should use an alias on those cases.
commented Mar 30, 2018 by ashatilo (180 points)
Guys things are not working properly - please have a look onto Service folder.
It should have folders with label private and public but has labels as prv2 and pub2.
The first case works but latter does not.

@startuml

folder "/svn/Software" as SvnRoot {
    folder Source as src1 {
        folder Driver {
            rectangle "Driver code"
            folder include as inc1 {
                rectangle "C++ headers"
                folder public as pub1 {
                    rectangle "Public interfaces"
                }
                folder private as prv1 {
                    rectangle "Private to implementation"
                }
            }
            folder src {
                rectangle "C++ sources"
            }
        }
        folder Service {
            rectangle "Service code"
            folder include as inc2 {
                rectangle "C++ headers"
                folder public as pub2 {
                    rectangle "Public interfaces"
                }
                folder private as prv2 {
                    rectangle "Private to implementation"
                }
            }
            folder src {
                rectangle "C++ sources"
            }
        }
    }
}

@enduml
http://www.plantuml.com/plantuml/png/lP1HIiGm48QVDwS8UTs7nPvWGGyWzWHnEjM1T58ca_WWUtVRc82B2uA8q9Gmyty_v3idzQ9v2SRCCKmerfrIuTCOPttpWixwPCV2Jp6gVJU75XfZ5i1zbmJkzaNVF0WLb3ev289wVWbeNHj3dD1jgvucXf2dMaJSYgwu--FHlgBVigbo7LppSo3OkUtMkQ_WusU0M55c3zZmorM9KF6AjKNApPQMq6XfMGCkoEgL8lUszkkDIU3s6r8Lbbm3wkakKGe1VbFMvZyu6txfRFWJPyF_Ejk-Yp5dv2aluGC0
...