Fix bug caused by unescaped globbing

Signed-off-by: Daniel J. Perry <dperry45@gatech.edu>
This commit is contained in:
Daniel J. Perry
2021-07-26 01:36:57 -04:00
parent 3c17c08604
commit 31073c67cb

View File

@@ -378,7 +378,7 @@ 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(dirname, '*.log'))
logs = glob.glob(os.path.join(glob.escape(dirname), '*.log'))
if logs:
msg = ("output directory %s is a finished rip" % dirname)
logger.debug(msg)