# Functions
Clanup removes the unpacket snapshot from the target root.
CloneTreeInto copies all the pseudofiles that ghw will consume into the root `scratchDir`, preserving the hieratchy.
CopyFilesInto copies all the given glob files specs in the given `destDir` directory, preserving the directory structure.
ExpectedCloneContent return a slice of glob patterns which represent the pseudofiles ghw cares about.
ExpectedCloneGPUContent returns a slice of strings pertaining to the GPU devices ghw cares about.
ExpectedCloneNetContent returns a slice of strings pertaning to the network interfaces ghw cares about.
ExpectedClonePCIContent return a slice of glob patterns which represent the pseudofiles ghw cares about, pertaining to PCI devices only.
ExpectedCloneStaticContent return a slice of glob patterns which represent the pseudofiles ghw cares about, and which are independent from host specific topology or configuration, thus are safely represented by a static slice - e.g.
OpenDestination opens the `snapshotName` file for writing, bailing out if the file seems to exist and have existing content already.
PackFrom creates the snapshot named `snapshotName` from the directory tree whose root is `sourceRoot`.
PakcWithWriter creates a snapshot sending all the binary data to the given `fw` writer.
Unpack expands the given snapshot in a temporary directory managed by `ghw`.
UnpackInto expands the given snapshot in a client-supplied directory.
Untar extracts data from the given reader (providing data in tar.gz format) and unpacks it in the given directory.
ValidateClonedTree checks the content of a cloned tree, whose root is `clonedDir`, against a slice of glob specs which must be included in the cloned tree.
# Constants
If set, `ghw` will not unpack the snapshot in the user-supplied directory unless the aforementioned directory is empty.
# Structs
CopyFileOptions allows to finetune the behaviour of the CopyFilesInto function.