We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18a8f2 commit 0d18fddCopy full SHA for 0d18fdd
qiita_pet/handlers/download.py
@@ -101,7 +101,9 @@ def _list_artifact_files_nginx(self, artifact):
101
The path information needed by nginx for each file in the artifact
102
"""
103
basedir = get_db_files_base_dir()
104
- basedir_len = len(basedir) + 1
+ basedir_len = len(basedir)
105
+ if not basedir.endswith('/'):
106
+ basedir_len += 1
107
to_download = []
108
for i, x in enumerate(artifact.filepaths):
109
# ignore if tgz as they could create problems and the
0 commit comments