I am using cloudpathlib to download bulk files from AWS s3. My question is how can I download only csv files using this package?
from cloudpathlib import CloudPath
root_dir = CloudPath('s3://dir1/dir2/*.csv')
root_dir.download_to(to_path)
In s3://dir1/dir2/
, there are csv and pdf files. Note that I am not in a position to use boto3 and I generally wouldn’t prefer loops.
Thanks.