Skip to content

LoadedBundle

Namespace Nfty.Core.Publish in assembly Nfty.Core.

public sealed class LoadedBundle : IDisposable

An upload bundle opened for looking at: a marketplace export that left set.json out. Read only; owns the temporary folder when it came from a packed .set.

Constructors

LoadedBundle()

public LoadedBundle();

Properties

Collection

public BundleCollection? Collection { get; init; }

The contract-level file, or null when the bundle carries none.

Items

public required IReadOnlyList<BundleItem> Items { get; init; }

The items, in number order.

Name

public required string Name { get; init; }

What to call it: the collection's name, else the folder's.

Problems

public IReadOnlyList<string> Problems { get; init; }

Metadata files (or collection.json) that could not be read, each with the reason. Listed rather than thrown: the point of opening a bundle is to find what is wrong with it.

SourceDirectory

public string SourceDirectory { get; init; }

The folder the bundle's files are in.

Methods

Dispose()

public void Dispose();

Removes the temporary folder a packed bundle was unpacked into.