mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 21:50:28 +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)
|
parent_dir = os.path.dirname(base_path)
|
||||||
else:
|
else:
|
||||||
parent_dir = self.output_folder or os.getcwd()
|
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
|
# Find a unique suffix for both folder and merged file, always
|
||||||
counter = 1
|
counter = 1
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user