From 314660f7d14635f57f18073a37c9c169bd4b475f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katharina=20Dr=C3=B6ge?= Date: Wed, 24 Sep 2025 16:54:24 +0200 Subject: [PATCH] Only look for this rip's log file in output directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Katharina Dröge --- whipper/command/cd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whipper/command/cd.py b/whipper/command/cd.py index b9c95c9..f95487e 100644 --- a/whipper/command/cd.py +++ b/whipper/command/cd.py @@ -378,8 +378,8 @@ Log files will log the path to tracks relative to this directory. self.program.metadata) dirname = os.path.dirname(discName) if os.path.exists(dirname): - logs = glob.glob(os.path.join(glob.escape(dirname), '*.log')) - if logs: + log_file = discName + '.log' + if os.path.exists(log_file): msg = ("output directory %s is a finished rip" % dirname) logger.debug(msg) raise RuntimeError(msg)