1

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
       }

}

1 Answer 1

0

Someone will correct me if I am wrong

I think (for performance reasons) the REST API Microsoft built, dives into the SQL server (database layer)

So distinction if an Item is a File Or Folder is made by SharePoint (the Application layer).

That means the REST data you get back is flat, and the metadata will indicate if something is a file or folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.