Skip to content

Commit 5d4462c

Browse files
author
yhori991
committed
Added support for s3:// url prefix
1 parent fa1b595 commit 5d4462c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

s3file/__S3File.py

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def local_xlist(path):
2121

2222

2323
def _split_into_bucket_and_key(path):
24+
if path[:5] == 's3://':
25+
path = path[5:]
2426
bucket, key = '', ''
2527
path_split = path.split('/')
2628
bucket = path_split[0]

0 commit comments

Comments
 (0)