I’m using API to upload assets and create folders. The problem is, that before I upload an asset using API, I create folder structure. It looks like that when I call setfolder API call, code is executed but new folder isn’t created instantly on the system, so when the upload asset code part is executed, asset can’t be uploaded because folder doesn’t exist yet.
Also when I’m uploading assets in bulk I first check if an asset with the same name already exists in the folder and if it does new file is renamed before upload. But if I upload files one after the other the problem is that the file before the current file hasn’t been created on the system yet so again I can’t check if the filename already exists.
I hope you understand my problem because it is complex and I don’t know exactly how to explain it.