Chris Gunderson
01/04/2023, 8:33 PMcsv_file = await s3_bucket_block.write_path(path=output_file, content=bytes_to_write)
Kevin Grismore
01/04/2023, 8:38 PM\
instead of /
.Chris Gunderson
01/04/2023, 8:39 PMs3_block = S3.load("sra-allocations")
s3_base_path = f'Allocations/Fidelity/{date.today().year}'
s3_bucket_block = S3Bucket(
bucket_name=s3_block.bucket_path,
aws_credentials=aws_credentials,
basepath=f"{s3_base_path}"
)
Kevin Grismore
01/04/2023, 8:46 PMwrite_path()
calls _resolve_path()
, which converts your path string into a Path
object. On Windows, I think this'll be a WindowsPath
https://github.com/PrefectHQ/prefect-aws/blob/main/prefect_aws/s3.py#L377Chris Gunderson
01/04/2023, 8:47 PM