How to create a directory for a file only if a directoy doesn't exist yet? via REST API

I have a list of users, each users will have his own directory for uploading files. Is there a way to create a directory automatically if it’s not been created yet ?

Or will I have to a) get a list of all the directories b) check whether or not a user’s directory exist c) create it if it doesn’t d) only then will I be able to upload a file

1 Like