From 13e5f4fbe63e15688f657b6a0c04a73cd77aed05 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Sat, 27 Aug 2022 20:11:44 +0200 Subject: [PATCH] Fix deleting of non empty folders not working --- transcoder/transcode_dvd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transcoder/transcode_dvd.py b/transcoder/transcode_dvd.py index b36c7d0..95226f2 100755 --- a/transcoder/transcode_dvd.py +++ b/transcoder/transcode_dvd.py @@ -286,12 +286,12 @@ def rename_transcoding_logfile_as_error_log(dvd): def delete_original_video_files(folder): - os.rmdir(folder) + shutil.rmtree(folder) def delete_tmp_dir(): try: - os.rmdir(os.path.join(TMP_DIR)) + shutil.rmtree(TMP_DIR) except FileNotFoundError: pass