Page 1 of 1

Update scripts mame and hbmame getters have no love for symlinks

Posted: Fri Nov 26, 2021 2:01 pm
by jca
On my system almost every directory is on a USB drive and I have symlinks on the SD card which point to these directories.
For example I have:
/media/fat/_Arcade -> /media/usb0/_Arcade
/media/fat/games -> /media/usb0/games

This is what I get when running the mame getter script without ini file:

Finding all .mra files in /media/fat/_Arcade and in recursive directores.
0 .mra files found in total.

Visibly the script did not use the symlink.
If I create an ini file containing:
MRADIR=/media/usb0/_Arcade
ROMMAME=/media/usb0/games/mame
Things get better but now the script becomes a nymphomaniac:

Finding all .mra files in /media/usb0/_Arcade and in recursive directores.
12325 .mra files found in total.

May be excluding the _Organized directory from the recursive search would speed up the update.

But the puzzling thing is that the script now fell in love again with symlinks as the _Organized directory does not contain mras but only symlinks to mras.

What is going on?