Split s3 path into bucket and key prefix. This will also handle the s3:// prefix. :return: Tuple of ('bucketname', 'keyname')
(s3_path)
| 238 | |
| 239 | |
| 240 | def split_s3_bucket_key(s3_path): |
| 241 | """Split s3 path into bucket and key prefix. |
| 242 | |
| 243 | This will also handle the s3:// prefix. |
| 244 | |
| 245 | :return: Tuple of ('bucketname', 'keyname') |
| 246 | |
| 247 | """ |
| 248 | if s3_path.startswith('s3://'): |
| 249 | s3_path = s3_path[5:] |
| 250 | return find_bucket_key(s3_path) |
| 251 | |
| 252 | |
| 253 | def get_file_stat(path): |
no test coverage detected