Commit e4e5dd3b authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix typo when calculating download target path

Fixes #30
parent 092671b7
......@@ -1241,7 +1241,7 @@ class file_download(_PithosContainer):
rpath = self.path.strip('/')
if local_path and self.path and local_path.endswith('/'):
local_path = local_path[-1:]
local_path = local_path.rstrip('/') or '/'
if (not obj) or self.object_is_dir(obj):
if self['recursive']:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment