Table of Contents

Struct FileChange

Namespace
RisingV.Shared.Files
Assembly
RisingV.Shared.dll

Represents a change that occurred to a file.

public readonly record struct FileChange : IEquatable<FileChange>
Implements
Inherited Members
Extension Methods

Constructors

FileChange(FileChangeType, string, string?)

Represents a change that occurred to a file.

public FileChange(FileChangeType ChangeType, string Path, string? NewPath = null)

Parameters

ChangeType FileChangeType

The type of change that occurred to the file.

Path string

The path of the file that was changed.

NewPath string

The new path of the file if it was renamed; otherwise, null.

Properties

ChangeType

The type of change that occurred to the file.

public FileChangeType ChangeType { get; init; }

Property Value

FileChangeType

NewPath

The new path of the file if it was renamed; otherwise, null.

public string? NewPath { get; init; }

Property Value

string

Path

The path of the file that was changed.

public string Path { get; init; }

Property Value

string