I'm developing an application and a part of it involves storing user submitted documents to a document library in SharePoint. Each folder in the document library is identified by the User ID. And within each folder is a list of files the user submits
Right now I'm using jquery and the SharePoint REST API to upload files and create the folders to the document library.
Naturally, if the User ID folder does not exist, I would have to create one, so my question is, how do I check to see if that folder exists?
For example, if my ID# is 111111, I would have to check the document library for a folder of 111111 and if it's not there, create a folder titled 111111.