Could you please help me write a function returning:
dict("file1.txt": list(<contents of file1>),
"file2.txt": list(<contents of file2>),
"file3.txt": list(<contents of file3>),
"file4.txt": list(<contents of file4>))
On input:
file.zip:
outer\
outer\inner1.zip:
file1.txt
file2.txt
outer\inner2.zip:
file3.txt
file4.txt
My attempts (with exceptions below):
-
WindowsError: [Error 32] The process cannot access the file because it is being used by another process
-
"File is not a zip file"
-
"File is not a zip file"
-
AttributeError: ZipFile instance has no attribute 'seek'