Is there a way to set the default storage directory external to tomcat so it doesn’t delete all of the stored files when tomcat directory is recreated?
Sure. Set cuba.fileStorageDir application property in app.properties of the core module.
See details here: Standard File Storage Implementation - CUBA Platform. Developer’s Manual
Thanks
Would be handy if you could modify it through the web app in Application Properties