Amiga.FileFormats.ADF 0.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Amiga.FileFormats.ADF --version 0.3.0                
NuGet\Install-Package Amiga.FileFormats.ADF -Version 0.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Amiga.FileFormats.ADF" Version="0.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Amiga.FileFormats.ADF --version 0.3.0                
#r "nuget: Amiga.FileFormats.ADF, 0.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Amiga.FileFormats.ADF as a Cake Addin
#addin nuget:?package=Amiga.FileFormats.ADF&version=0.3.0

// Install Amiga.FileFormats.ADF as a Cake Tool
#tool nuget:?package=Amiga.FileFormats.ADF&version=0.3.0                

Amiga ADF File Format

This package allows reading and writing ADF disk images.

Requirements

This is all written in pure C#, so there are no dependencies beside .NET.

Virtual File System

The IADF interface implements a virtual file system interface IVirtualFileSystem which allows access to files (IFile) and directories (IDirectory) in a tree hierarchy.

Usage

Reading a disk image.

var disk = ADFReader.LoadADFFile("myDiskImage.adf");

var rootDir = disk.RootDirectory;
var myFile = rootDir.GetFile("internalFile.txt");

Console.WriteLine($"File Size: {myFile.Size}");

var myFileData = myFile.Data;

Writing a disk image from a directory.

string name = "My Image";
bool includeEmptyDirectories = false;
bool bootable = false;
bool internationalMode = false;
bool hd = false;

var result = ADFWriter.WriteADFFile("myNewDiskImage.adf", name, "mySourceDir",
    includeEmptyDirectories, "*.*", FileSystem.OFS, bootable, internationalMode, hd);

if (result == ADFWriteResult.Success)
{
    Console.WriteLine("It worked!");
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 251 3/16/2023
0.4.0 109 8/14/2024
0.3.0 108 8/14/2024
0.1.0 130 2/13/2024

Use with caution. This is still in beta phase and not all features/operations are supported.