Struct FileChange
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
ChangeTypeFileChangeTypeThe type of change that occurred to the file.
PathstringThe path of the file that was changed.
NewPathstringThe 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
NewPath
The new path of the file if it was renamed; otherwise, null.
public string? NewPath { get; init; }
Property Value
Path
The path of the file that was changed.
public string Path { get; init; }