I am reading folder paths from a file or by querying a database and the output will be as follows:
Consider below A
as the parent folder and the remaining are the child folders of it.
A\A1\A2\A3
A\B\B1\B2
A\B\B4\B5\B5
A\C\C1\C2
I want to display the folder structure in a web page by reading the paths.
Is there any JavaScript or jquery or any function which will automatically sort and display in a structural way?
I am using CGI script (Perl & HTML) to display the structure. So the idea to sort and display using Perl will also be a solution.