标签: python json amazon-s3 amazon-redshift
假设我在S3中具有以下文件:ascxxxxx.json,asbxxxxx.csv,atbxxxxx.json,altxxxxx.csv
ascxxxxx.json
asbxxxxx.csv
atbxxxxx.json
altxxxxx.csv
我想根据以下伪代码复制这些文件:
if file == (.json) format json 'auto'; if file == (.csv) delimiter, ignore_header = 1