I'm trying to find a way to do this: create a tree view of all items in the "Documents" library, with folders, subfolders, and items (links to items).
Im using _api fo get folders an files
all i get is the folders and the name of the files ! not all files but files in the root.
I want the result in treeView or Array
Example: For a Documents library created as this :
Folder 1 Folder 1.1 Folder 2 Folder 2.1 text.txt Folder 3