Class LocalItemLocation
- Namespace
- EncDotNet.S100.Collections
- Assembly
- EncDotNet.S100.Collections.dll
The item's data is on the local file system, either in a folder or inside a ZIP archive.
public sealed record LocalItemLocation : ItemLocation, IEquatable<ItemLocation>, IEquatable<LocalItemLocation>
- Inheritance
-
LocalItemLocation
- Implements
- Inherited Members
Remarks
Relative paths use forward slashes regardless of platform, so a persisted index is portable; hosts convert them when opening files.
Constructors
LocalItemLocation(string, string, IReadOnlyList<string>, string?, bool)
The item's data is on the local file system, either in a folder or inside a ZIP archive.
public LocalItemLocation(string RootPath, string RelativePath, IReadOnlyList<string> UpdateRelativePaths, string? CatalogueRelativePath = null, bool IsZip = false)
Parameters
RootPathstringThe absolute path of the folder or ZIP that relative paths resolve against (the root of an asset source).
RelativePathstringThe base dataset file, relative to
RootPath.UpdateRelativePathsIReadOnlyList<string>Sequential update files in application order, relative to
RootPath.CatalogueRelativePathstringThe exchange-set catalogue the item was read from, relative to
RootPath, or null for a loose dataset.IsZipboolTrue when
RootPathis a ZIP archive.
Remarks
Relative paths use forward slashes regardless of platform, so a persisted index is portable; hosts convert them when opening files.
Properties
CatalogueRelativePath
The exchange-set catalogue the item was read from, relative to
RootPath, or null for a loose dataset.
public string? CatalogueRelativePath { get; init; }
Property Value
IsZip
True when RootPath is a ZIP archive.
public bool IsZip { get; init; }
Property Value
RelativePath
The base dataset file, relative to RootPath.
public string RelativePath { get; init; }
Property Value
RootPath
The absolute path of the folder or ZIP that relative paths resolve against (the root of an asset source).
public string RootPath { get; init; }
Property Value
UpdateRelativePaths
Sequential update files in application order, relative to RootPath.
public IReadOnlyList<string> UpdateRelativePaths { get; init; }