From 59961ea9dd914d3e5fc3a3a5f960427eff0babc5 Mon Sep 17 00:00:00 2001 From: lian Date: Wed, 28 Oct 2015 15:15:47 +0800 Subject: [PATCH] use "real_path" when download sub-folder in shared dir --- seahub/views/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seahub/views/repo.py b/seahub/views/repo.py index 7e5ac9c408..d40c0ebc90 100644 --- a/seahub/views/repo.py +++ b/seahub/views/repo.py @@ -370,7 +370,7 @@ def _download_dir_from_share_link(request, fileshare, repo, real_path): request, _(u'Unable to access file: share link traffic is used up.')) shared_by = fileshare.username - if fileshare.path == '/': + if real_path == '/': dirname = repo.name else: dirname = os.path.basename(real_path.rstrip('/'))