<directory_tree> element contains the complete file system structure for the data track. It holds all files, directories, and dummy sectors that will be written to the ISO.
Basic Structure
Child Elements
The<directory_tree> element can contain:
<file>- Individual files (see File Elements)<dir>- Subdirectories<dummy>- Invisible dummy sectors
Directory Elements
The<dir> element creates a subdirectory in the file system.
Directory Attributes
The name of the directory as it appears in the ISO. Must contain only uppercase alphanumeric characters and underscores. Maximum 8 characters recommended, 31 characters maximum
Optional base path for source files. If specified, file elements without a
source attribute will look for files in this directory. Can be a relative or absolute pathVisibility flag:
0: Not hidden (default)1: Hidden2: Obfuscated (not added to Directory Record)3: Obfuscated and hidden (directories only)
Custom directory record order for images with
new_type="true". This setting doesn’t modify LBA and is per-directory. Files/folders with negative order appear first, followed by unordered items (order=0), then positive order itemsUsing srcdir
Thesrcdir attribute simplifies file paths:
Dummy Sectors
The<dummy> element creates invisible dummy sectors in the file system. These are commonly used at the end of the data track to prevent drive runaway, which can damage the drive mechanism.
Dummy Attributes
Size of the dummy file in sector units. Each sector is 2048 bytes, so 1024 sectors = 2 MB
The dummy’s submode value (0-255):
0: Form 1 dummy (0x00) - default32: Form 2 dummy (0x20)
Calculates the ECC with the real address instead of a zeroed one. Only useful for some CD-DA games’ last DATA postgap sector that has non-standard ECC calculation
Dummy files are completely invisible - they don’t appear in the directory records, ensuring a clean directory structure when viewed in a file browser.
Nesting Limits
Complete Example
File Ordering
Files and directories are sorted in the ISO according to these rules:- If
new_type="true"in the track element, files are sorted by theorderattribute - Otherwise, files are sorted alphabetically by name
- Directories always appear in directory listings
Custom Order Example (new_type mode)
Custom Order Example (new_type mode)
DA File Placement
Next Steps
File Elements
Learn about file types and attributes
Audio Tracks
Add CD-DA audio tracks