https://dagster.io/ logo
#ask-community
Title
# ask-community
c

Carlos Sanoja

08/26/2021, 2:28 PM
Hello! I'm trying to upload a file (CSV) to a S3 bucket, looking into the code there is a solid to handle this task https://github.com/dagster-io/dagster/blob/master/python_modules/libraries/dagster-aws/dagster_aws/s3/solids.py
def file_handle_to_s3(context, file_handle):
But and unable to find what a file_handle is or how to create this object instance from a CSV file. Could anyone help me please? @chris @max
m

max

08/26/2021, 3:26 PM
sorry Carlos, this is a bit of an oversight; the
FileHandle
API isn't very well documented
if you take a look a thttps://docs.dagster.io/_modules/dagster/core/storage/file_manager#LocalFileHandle you'll see the class you'll want to use here
@sandy may have views on other ways to accomplish this task, perhaps using IO managers
c

Carlos Sanoja

08/27/2021, 5:08 PM
Thanks for your help!
155 Views