mirror of
https://github.com/fmhy/dupe-checker.git
synced 2026-03-11 08:55:39 +00:00
Overwrite existing filename in csv export
This commit is contained in:
parent
dcdaceac86
commit
f79cba46d0
1 changed files with 3 additions and 0 deletions
|
|
@ -276,6 +276,9 @@ class UI(QMainWindow):
|
|||
if not file_dialog.exec_():
|
||||
return
|
||||
file_path = file_dialog.selectedFiles()[0]
|
||||
# remove file if it already exists
|
||||
if os.path.exists(file_path):
|
||||
os.remove(file_path)
|
||||
links = self.searchText(self.inputBox.toPlainText())
|
||||
try:
|
||||
with open(file_path, 'w', newline='') as csvfile:
|
||||
|
|
|
|||
Loading…
Reference in a new issue