mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-14 21:51:32 -05:00
Only add the download_filename to cleanup_filenames (which get deleted) if the file is zipped up. Otherwise, OnionShare deletes the original file
This commit is contained in:
parent
574ef19515
commit
0ea31d39f7
@ -120,6 +120,7 @@ def main(cwd=None):
|
||||
print(strings._("preparing_files"))
|
||||
try:
|
||||
web.set_file_info(filenames)
|
||||
if web.is_zipped:
|
||||
app.cleanup_filenames.append(web.download_filename)
|
||||
except OSError as e:
|
||||
print(e.strerror)
|
||||
|
@ -47,6 +47,7 @@ class CompressThread(QtCore.QThread):
|
||||
# Cancelled
|
||||
pass
|
||||
|
||||
if self.mode.web.is_zipped:
|
||||
self.mode.app.cleanup_filenames.append(self.mode.web.download_filename)
|
||||
except OSError as e:
|
||||
self.error.emit(e.strerror)
|
||||
|
Loading…
x
Reference in New Issue
Block a user