[Scummvm-git-logs] scummvm master -> da18cb73288c29c188046a3c0e27e942f51e7775

sev- noreply at scummvm.org
Fri Sep 5 18:15:41 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
da18cb7328 DEVTOOLS: COMPANION: Make sure that directory for dumped files exists


Commit: da18cb73288c29c188046a3c0e27e942f51e7775
    https://github.com/scummvm/scummvm/commit/da18cb73288c29c188046a3c0e27e942f51e7775
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-09-05T20:15:30+02:00

Commit Message:
DEVTOOLS: COMPANION: Make sure that directory for dumped files exists

Some CDs have files coming before directories in the directory entry.

Make sure the directory is created before attempting to dump each file

Changed paths:
    devtools/dumper-companion.py


diff --git a/devtools/dumper-companion.py b/devtools/dumper-companion.py
index d7b7f52e3f9..454bfc9b85b 100755
--- a/devtools/dumper-companion.py
+++ b/devtools/dumper-companion.py
@@ -585,6 +585,10 @@ def extract_volume_iso(args: argparse.Namespace) -> None:
             if dryrun:
                 continue
 
+            # Sometimes, directory is not present in the list
+            # Make sure we have place to write the file
+            os.makedirs(os.path.dirname(out_file_path), exist_ok=True)
+
             # arg[path_type] = iso_file_path
             # iso.get_file_from_iso(out_file_path, **arg)
             with open(os.path.join(pwd, filename), "wb") as f:




More information about the Scummvm-git-logs mailing list