Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion templateflow/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,12 @@ def _datalad_get(filepath):

def _s3_get(filepath):
from sys import stderr
from urllib.request import quote

import requests
from tqdm import tqdm

path = filepath.relative_to(TF_LAYOUT.root).as_posix()
path = quote(filepath.relative_to(TF_LAYOUT.root).as_posix())
url = f'{TF_S3_ROOT}/{path}'

print(f'Downloading {url}', file=stderr)
Expand Down
Loading