Skip to content
Snippets Groups Projects
Commit b2ea2ee2 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX(converters): name and path added to structure elements

parent f411d63b
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!200Zipfile converter
Pipeline #57689 passed
......@@ -70,10 +70,11 @@ class ZipFileConverter(SimpleFileConverter):
entity_ls = []
for el in os.listdir(unzd_path):
if isdir(join(unzd_path, el)):
entity_ls.append(Directory())
path = join(unzd_path, el)
if isdir(path):
entity_ls.append(Directory(el, path))
else:
entity_ls.append(File())
entity_ls.append(File(el, path))
return entity_ls
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment