DesktopContent.Directory record

Namespace Runic.Desktop · Runic.Desktop 0.7.0-preview.5

public sealed record DesktopContent.Directory : DesktopContent, IEquatable<DesktopContent.Directory>

Nested in DesktopContent. Inherits or implements DesktopContent, IEquatable.

Serves the files in a local directory.

Parameters

Root

The directory, absolute or relative to the current directory. It must exist when the surface is created.

Entry

The file the presentation opens, relative to Root, such as index.html. When omitted, a request for a directory opens its index.html, index.htm, index.ts or index.js.

Constructors

Directory

public Directory(string Root, string? Entry = null)

Serves the files in a local directory.

Parameters

Root

The directory, absolute or relative to the current directory. It must exist when the surface is created.

Entry

The file the presentation opens, relative to Root, such as index.html. When omitted, a request for a directory opens its index.html, index.htm, index.ts or index.js.

Properties

Entry

public string? Entry { get; init; }

Gets the file the presentation opens, relative to Directory.Root, or null for index discovery.

Root

public string Root { get; init; }

Gets the directory, absolute or relative to the current directory.