Kuoxsr / spindex

A personal tool to generate sounds.json from a folder structure
0 stars 0 forks source link

File copy and overwrite search doesn't ignore bad files #16

Closed Kuoxsr closed 6 months ago

Kuoxsr commented 6 months ago

The app happily tries to copy files that are not under "sounds" and files that do not match naming rules to the target folder structure if the user chooses to "continue" when warnings for these types of files are presented.

Instead of looping through the list of acceptable files when searching for overwrites or copying the files, the application uses Path.glob("*.ogg") again, and then crashes when it tries to get the relative path to "sounds" under each file path.