Cannot download folders with sub folders #530

This commit is contained in:
Karel Picman 2016-06-08 16:55:04 +02:00
parent ab52e6ae09
commit 9e937525af

View File

@ -64,7 +64,7 @@ class DmsfZip
string_path = string_path[(root_path.length + 1) .. string_path.length] if root_path
@zip_file.put_next_entry(string_path)
@folders << folder
folder.dmsf_folders.visible.each { |subfolder| self.add_folder(subfolder, root_path) }
folder.dmsf_folders.visible.each { |subfolder| self.add_folder(subfolder, member, root_path) }
folder.dmsf_files.visible.each { |file| self.add_file(file, member, root_path) }
end
end