treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Read directory and populate jquery treeview

  • I have a treeview working great. I have just populated it by hand right now but I would like to populate it from a jquery script. Can this be done? I would need it to read through a folder structure and populate the treeview.

  • Example directory list: ROOT
    - Folder 1
    - File 1
    - File 2
    - Folder 1.1
    - File 1.2
    - Folder 2
    - Folder 2.1
    - File 1
    - Folder 2.2
    - File 2
    - File 3

    Etc.