Working with downloaded files

I am downloading a file from s3_bucket and saving it at temp folder call files.
And it is working fine locally and I am able to read and delete.

however I am getting :enoent while trying to read it in the production.

Can you please help me how should I approach here or the solution.

Where do you store that folder? Why you create your own folder for that instead of using /tmp?