I was wondering if there is a way that I can (more simply that writing my own logic) to create a JS object that has a document libary file structure. E.G.
object = {
foldername {
file {
url
}
},
file {
url
}
}