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