Table of Contents

Class TarVersionParser

Namespace
Archiver.Core.Services
Assembly
Archiver.Core.dll

Parses tar.exe --version output into TarCapabilities. Extracted into a separate class so T-F48 can unit-test format detection without launching a process.

public static class TarVersionParser
Inheritance
TarVersionParser
Inherited Members

Methods

Parse(string)

Parses versionOutput (the raw stdout of tar.exe --version) into TarCapabilities. Returns safe all-unsupported defaults if the output doesn't contain a recognizable libarchive version.

public static TarCapabilities Parse(string versionOutput)

Parameters

versionOutput string

Returns

TarCapabilities