Skip to content

Commit 72a391b

Browse files
committed
basedir_len * 3
1 parent 63a573a commit 72a391b

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
@@ -76,7 +76,9 @@ def _list_dir_files_nginx(self, dirpath):
7676
directory
7777
"""
7878
basedir = get_db_files_base_dir()
79-
basedir_len = len(basedir) + 1
79+
basedir_len = len(basedir)
80+
if not basedir.endswith('/'):
81+
basedir_len += 1
8082
to_download = []
8183
for dp, _, fps in walk(dirpath):
8284
for fn in fps:

0 commit comments

Comments
 (0)