Skip to content

buildgdi -rebuild flattens file system tree #11

@lhsazevedo

Description

@lhsazevedo

When running buildgdi in rebuild mode on Linux, the directory hierarchy from the source is not preserved. Instead, all files are placed at the root of the disc with path components joined into filenames.

$ buildgdi          
BuildGDI v2.1.1 - Command line GDIBuilder
(...)

$ list-gd-files original/track3.bin
├── 0GDTEX.PVR
├── 1ST_READ.BIN
├── OD_COMMON/
│   ├── 3S_2DO0_L.NJD
│   ├── 3S_2DO0_S.NJD
│   ├── 3S_2DO0_SN.NJD
(...)

$ ls rebuild_root
1ST_READ.BIN

$ buildgdi -rebuild -gdi original/original.gdi -data ./rebuild_root/ -output ./rebuild_out/
Writing......... Done!

$ list-gd-files rebuild_out/track03.bin
├── 0GDTEX.PVR
├── 1ST_READ.BIN
├── OD_COMMON/
├── OD_COMMON_3S_2DO0_L.NJD
├── OD_COMMON_3S_2DO0_S.NJD
├── OD_COMMON_3S_2DO0_SN.NJD
(...)

Note: list-gd-files is a small script I wrote to debug the GD file system. It’s not part of GDIBuilder and hasn’t been released yet.

Context:

GDIBuilder version: v2.1.1
OS (host): Linux Mint 21.3
OS (container): Debian 12

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