Hi everyone,
I’m using the arc / arc_ecto library to store medias on S3.
Recently I had to change the storing directory.
So I changed the function “storage_dir” to suit my new path to S3 like so:
def storage_dir(_version, {_file, %Media{} = scope}) do
“/models/medias/#{scope.id}/”
end
And now that is done, all newly created medias are stored in the new directory and I can retrieve them correctly but it is impossible to retrieve medias stored in the old directory. The arc library generate an url that use the new storage directory and I can’t retrieve medias from the old one.
Does anyone know what can I do to migrate my medias from the old directory to the new one?
Is it possible to do it using Arc ecto or should I use another library related to S3?
Many thanks for your help.