Splits an S3 URI into the bucket name and the object path.
(String, String) csS3SplitUri(String uri) { final parts = uri.replaceFirst('s3://', '').split('/'); return (parts.first, parts.skip(1).join('/')); }