Hardware-Target-Game-Database icon indicating copy to clipboard operation
Hardware-Target-Game-Database copied to clipboard

parse_pack.py: make directory sort case-insensitive

Open tjanas opened this issue 2 years ago • 0 comments

parse_pack currently performs a case-insensitive sort on files within a directory. However, it does a case-sensitive sort on directories (in a Linux environment).

For example, given the following file tree:

.
└── MiSTer Add On Packs
    ├── config
    │   └── MSX.CFG
    └── Games
        └── MSX
            ├── boot.vhd
            ├── MSX1 ROM list.txt
            ├── MSX2 ROM list.txt
            └── readme.txt

parse pack will create the entry for config/MSG.CFG after it creates the entries for Games/. Ideally, it would create the entry for MiSTer Add On Packs/config/MSX.CFG before MiSTer Add On Packs/Games/MSX/boot.vhd

tjanas avatar May 26 '22 12:05 tjanas