Hello, I'm trying to download a file from s3 using...
# ask-community
m
Hello, I'm trying to download a file from s3 using a prefect docker agent , save it into some location (for e.g: ./data/file.txt) in my docker container, but the problem is when downloading the file is pulled down with some extension added to it something that looks like this: ./data/file.txt.405fgh and this is making difficult to access the file. Can someone tell me how to get rid of the extension that is being append to the filename? This is how the error appears on prefect cloud UI
a
hard to tell without seeing your code, but any time you download the file you need to specify the directory, so you have full control over it. Here is one example
m
This what I am doing, I am specifying the directory within the flow like this
and here is my load_data function
It's storing in the correct directory, the issue is the fact that it's adding some weird extension to the file that I specified
a
maybe you can try boto3 client instead of a resource
m
ok