Skip to content

Commit

Permalink
build correct url from windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mfschmidt authored and effigies committed Oct 12, 2023
1 parent 9f5462b commit fb88d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templateflow/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def _s3_get(filepath):
import requests

path = str(filepath.relative_to(TF_LAYOUT.root))
url = "%s/%s" % (TF_S3_ROOT, path)
url = "%s/%s" % (TF_S3_ROOT, path.replace("\\", "/"))

print("Downloading %s" % url, file=stderr)
# Streaming, so we can iterate over the response.
Expand Down

0 comments on commit fb88d1d

Please sign in to comment.