Skip to content

Validate Datfile shows issues for folder entries #2

Closed

Description

@agowa

Hi, when creating a Dat using these options:

Image

The resulting Datfile doesn't pass the built-in validator and shows a lot of errors for the folders:

Image

Something is wrong here, either the validator should skip over these entries and not report an issue or the Creator Studio should create these lines with the required attribute so that it passes.

Activity

  1. Eggmansworld commented on Jul 27, 2026

    @Eggmansworld
    Owner

    I would need to see a generated datfile that throws these validator errors. I would want to inspect it to see if the default sha1 value for a placeholder folder is present or absent. Provide that, and we can move this forward.

  2. Eggmansworld commented on Jul 27, 2026

    @Eggmansworld
    Owner

    Thanks for reporting this. You framed the options exactly right, and the first one was correct: the validator should skip these.

    A rom name ending in / is a directory marker — it records that a folder exists rather than describing a file. RomVault writes these itself, with a zero size and CRC and no other hashes, so requiring a sha1 of them was reporting a problem that was not one. The "Grouped + Folders" structure produces them by design, which is why you saw so many.

    The fix: directory entries are exempt from the required-attribute check, while any values they do carry are still validated.

    Testing: a dat mixing good roms, valid folder markers, a folder marker with a malformed CRC, a rom missing its sha1, and a rom with a malformed CRC — the three real problems are still reported and the valid markers no longer are.

    Fixed in v0.1.5.

  3. added a commit that references this issue on Oct 25, 2026
    7603c3f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions