Tell StorageProviders where to write inputs #3905
Labels
comp/storage
Issues related to storage input
th/config
Theme: Related to configuration files and settings across the project
Currently each StorageProvider implementation, makes a decision in their 'New*()` function as to which local directory they will write inputs to. They do this by finding the configured storage directory, and then creating a temporary directory named after the type of StorageProvider. This means the structure becomes:
As this decision is made in the New() method as the provider is created, there is no opportunity to tell the provider where we want it to save the data it downloads. Ideally we would provide a directory to the StorageProvider's PrepareStorage method, so that it would be
This would:
The text was updated successfully, but these errors were encountered: