possibile fix esportazione videoteca su android

This commit is contained in:
marco
2020-10-17 19:21:48 +02:00
parent b022109f9e
commit fc78b3a6a4

View File

@@ -101,7 +101,7 @@ def zip(dir, file):
temp = file
file = filetools.join(temp_path, os.path.split(file)[-1])
smb = True
with ZipFile(file, "w") as zf:
with ZipFile(filetools.file_open(file, 'wb', vfs=False), "w") as zf:
abs_src = os.path.abspath(dir)
for dirname, subdirs, files in os.walk(dir):
for filename in files:
@@ -118,5 +118,5 @@ def unzip(dir, file):
filetools.copy(file, temp)
file = temp
with ZipFile(file, 'r') as zf:
zf.extractall(dir)
with ZipFile(filetools.file_open(file, 'rb', vfs=False), 'r') as zf:
zf.extractall(dir)