Skip to content

verifydump chokes on filenames containing brackets [] #16

@coreyemtp

Description

@coreyemtp

As stated, a filename such as:

XI [sai] (Japan) (Demo 2).chd

Will cause the following error in PowerShell 7, Windows 11:

W:\PlayStation (CHD)>verifydump.exe --extra-cue-source "R:_Emu_ROM Managers\DATs\Redump (Other)\Cuesheets" "R:_emu_ROM Managers\DATs\1G1R\Redump\Sony - PlayStation (2022-07-01 03-24-24) (Retool 2022-07-06 12-33-55) (6,196).dat" ".\XI [sai] (Japan) (Demo 2).chd"
Datfile loaded successfully with 6196 games
Traceback (most recent call last):
File "exeentry.py", line 5, in
File "verifydump\console.py", line 45, in verifydump_main
File "verifydump\verify.py", line 258, in verify_dumps
File "verifydump\verify.py", line 240, in verify_dump_if_format_is_supported
File "verifydump\verify.py", line 39, in verify_chd
File "verifydump\convert.py", line 30, in convert_chd_to_normalized_redump_dump_folder
File "verifydump\convert.py", line 63, in normalize_redump_bincue_dump
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'Z:\TEMP\tmpf1eldev4\XI [sai] (Japan) (Demo 2) (Track 1).bin' -> 'Z:\TEMP\tmpf1eldev4\XI [sai] (Japan) (Demo 2).bin'
[5200] Failed to execute script 'exeentry' due to unhandled exception!

Simply renaming the file, removing the brackets causes it to work correctly, though it does then complain about the filename not matching the DAT.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions