Table of Contents

Class Archive

Namespace
Fabricator.Resources
Assembly
Fabricator.Resources.dll
[CompilationMapping(SourceConstructFlags.ObjectType)]
public class Archive
Inheritance
Archive
Inherited Members

Methods

unpackArchive(AbsolutePath, Sha256Hash, AbsolutePath, FSharpOption<IEnumerable<Resource>>?)

Creates a resource unpacking a ZIP archive to a directory.

public static Resource unpackArchive(AbsolutePath archive, Hash.Sha256Hash hash, AbsolutePath destinationDirectory, FSharpOption<IEnumerable<Resource>>? dependsOn)

Parameters

archive AbsolutePath

The path of the archive.

hash Hash.Sha256Hash

The SHA-256 hash of the archive, used to detect whether it is already unpacked.

destinationDirectory AbsolutePath

The directory to unpack the archive to.

dependsOn FSharpOption<IEnumerable<Resource>>

The resources this resource depends on, e.g. the one downloading the archive.

Returns

Resource