Исправлен перенос skel в шифрованную директорию

legacy27 3.6.7.1
parent 8c025dbb31
commit 026aec8698

@ -123,10 +123,10 @@ class Desktop(MethodsInterface):
# поместить данные во временный tarfile
remove_files = []
tf = tempfile.TemporaryFile()
for fn in listDirectory(userDir, fullPath=False):
full_fn = path.join(userDir, fn)
if path.lexists(full_fn):
with tarfile.open(fileobj=tf, mode='w:') as tarf:
with tarfile.open(fileobj=tf, mode='w:') as tarf:
for fn in listDirectory(userDir, fullPath=False):
full_fn = path.join(userDir, fn)
if path.lexists(full_fn):
tarf.add(full_fn, fn)
remove_files.append(full_fn)
tf.flush()

Loading…
Cancel
Save