Class ExtractResult
Represents the result of an ChdFile extraction to a directory, including per-track reporting for CD/GD-ROM images.
public sealed record ExtractResult : IEquatable<ExtractResult>
- Inheritance
-
ExtractResult
- Implements
- Inherited Members
Constructors
ExtractResult(List<string>, List<TrackExtractResult>, ChdError)
Creates a new ExtractResult with the given lists and error code.
public ExtractResult(List<string> createdFiles, List<TrackExtractResult> trackResults, ChdError error)
Parameters
createdFilesList<string>trackResultsList<TrackExtractResult>errorChdError
Properties
CreatedFiles
Paths to all files that were successfully created (track files, CUE/GDI descriptor).
public IReadOnlyList<string> CreatedFiles { get; init; }
Property Value
Error
An error code for the overall extraction. Chderrnone means the entire operation succeeded. Set to a non-none value only when a non-track-specific fatal error occurs (e.g. writing the CUE/GDI descriptor fails).
public ChdError Error { get; init; }
Property Value
HasTrackFailures
true if at least one track failed to extract.
public bool HasTrackFailures { get; }
Property Value
IsCompleteSuccess
true if every track and descriptor was extracted without error.
public bool IsCompleteSuccess { get; }
Property Value
TrackResults
Per-track extraction results. Non-empty only for GD-ROM images where tracks are extracted individually. Each entry reports the track number, output path on success, and error code.
public IReadOnlyList<TrackExtractResult> TrackResults { get; init; }