When I delete an uploaded file using CarrierWave and Mongoid it remove the file but leave emty folders.
/files/:user_id/images/:file_id/ ['image.png', 'content_image.png', 'thumb_image.png']
I want the :file_id folder to also be removed when the file is deleted. Is there a way to do this?
I’ve solved this with this: