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
archiveAbsolutePathThe path of the archive.
hashHash.Sha256HashThe SHA-256 hash of the archive, used to detect whether it is already unpacked.
destinationDirectoryAbsolutePathThe directory to unpack the archive to.
dependsOnFSharpOption<IEnumerable<Resource>>The resources this resource depends on, e.g. the one downloading the archive.