possibile fix esportazione videoteca su android
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user