Skip to content

Commit

Permalink
Merge pull request #12 from lilab-bcb/yiming
Browse files Browse the repository at this point in the history
bug fix for AWS backend copy
  • Loading branch information
yihming authored May 6, 2022
2 parents 74db68c + 1fb664e commit 1199791
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion strato/backends/_aws.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os, shutil
import boto3
from subprocess import check_call, CalledProcessError
from typing import Optional


def parse_wildcard(filepath):
prefix = "s3://" if filepath.startswith("s3://") else ""
Expand All @@ -14,6 +14,9 @@ def parse_wildcard(filepath):
assert wd_idx != -1, "The given path doesn't contain wildcard!"

parent_folder = prefix + '/'.join(fp_list[0:wd_idx])
if parent_folder == "" and prefix == "":
parent_folder = "."

wildcard = '/'.join(fp_list[wd_idx:])

return parent_folder, wildcard
Expand Down

0 comments on commit 1199791

Please sign in to comment.