USGS-WiM / StreamStats-Tools

A collection of tools for StreamStats data preparation and upload to AWS
Other
0 stars 0 forks source link

Update checkS3Bucket function #35

Open kjacobsen16 opened 4 years ago

kjacobsen16 commented 4 years ago

The wildcard function no longer works for the s3 ls command, so I'm currently just doing a subprocess.call, checking if the error code is greater than zero (which means there's an error) and returning "false" if so, rather than printing any errors.

I think in the future, using something like boto (I think we use this in the pull down script) might get us better methods for these calls.