mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
Checking if the output folder exists - failing if it doesn't
This commit is contained in:
@@ -279,6 +279,14 @@ class ConversionThread(QThread):
|
||||
parent_dir = os.path.dirname(base_path)
|
||||
else:
|
||||
parent_dir = self.output_folder or os.getcwd()
|
||||
# Ensure the output folder exists, error if it doesn't
|
||||
if not os.path.exists(parent_dir):
|
||||
self.log_updated.emit(
|
||||
(
|
||||
f"Output folder does not exist: {parent_dir}",
|
||||
"red",
|
||||
)
|
||||
)
|
||||
# Find a unique suffix for both folder and merged file, always
|
||||
counter = 1
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user