Dynamic Subfolder Paths - folder does not exist even after updating asset directories in settings I have an asset directory which is set to

{basePath}assets/images/products/


I know my basePath is right as it works on other asset sources.

My entry upload location for products is set to:

{slug}/static/studio


However I get the following error when uploading assets:

upload failed. error uploading the file: The folder "/var/www/html/assets/images/products/carambola-earrings/static/studio/" does not exist


I have tried 'updating asset indexes'. But no luck. I have also double checked that the assets/images/products/ directory exists.

I am also checked the permissions are set to '775' for '/var/www/html'

Any help greatly appreciated :)
Ok, so I have figured out why this wasn't working. 
When clicking on reset asset indexes It was always popping up an alert saying that another asset was missing. I already knew this, and it was something I intended on dealing with later. So I clicked OK and as the progress indicator continued to run along with the Tick Icon, I assumed it continued to update everything else, skipping over the error.
But it turns out this isn't the case. The function halts at the error. So once I fixed this other missing asset, everything worked.
It is a little misleading having the progress animation and tick icon still work when in fact nothing is happening.
thanks for all your help. :)