Skip to content

Commit 0d18fdd

Browse files
committed
basedir_len
1 parent e18a8f2 commit 0d18fdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qiita_pet/handlers/download.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ def _list_artifact_files_nginx(self, artifact):
101101
The path information needed by nginx for each file in the artifact
102102
"""
103103
basedir = get_db_files_base_dir()
104-
basedir_len = len(basedir) + 1
104+
basedir_len = len(basedir)
105+
if not basedir.endswith('/'):
106+
basedir_len += 1
105107
to_download = []
106108
for i, x in enumerate(artifact.filepaths):
107109
# ignore if tgz as they could create problems and the

0 commit comments

Comments
 (0)