|
|
|
@ -123,10 +123,10 @@ class Desktop(MethodsInterface):
|
|
|
|
|
# поместить данные во временный tarfile
|
|
|
|
|
remove_files = []
|
|
|
|
|
tf = tempfile.TemporaryFile()
|
|
|
|
|
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):
|
|
|
|
|
with tarfile.open(fileobj=tf, mode='w:') as tarf:
|
|
|
|
|
tarf.add(full_fn, fn)
|
|
|
|
|
remove_files.append(full_fn)
|
|
|
|
|
tf.flush()
|
|
|
|
|