public sealed class RunicPathChange Targets of a RunicPathWatcher that changed together.
Properties
Entries
public IReadOnlyList<RunicPathChangeEntry> Entries { get; } Gets the paths that changed: at least one for each of RunicPathChange.Targets, in the same order.
Remarks
The watcher compares what it read of each target before and after the change. For a RunicWatchTarget.File, the entry is the file. For a RunicWatchTarget.Directory or RunicWatchTarget.Files, the entries are the matching entries that were added (RunicPathChangeKind.Created) or removed (RunicPathChangeKind.Deleted), a renamed entry being both, in ordinal order of their names; for RunicWatchTarget.Files also those whose size, write time, kind or link target changed (RunicPathChangeKind.Changed). Where the watcher cannot name what changed, as for a RunicWatchTarget.Link, a RunicWatchTarget.GitHead, an unreadable directory or an event that named an entry whose metadata stayed the same, the entry is the target's own full path with RunicPathChangeKind.Changed.
Changes are compared between readings, so an entry created and deleted again between two readings is not listed.
Targets
public IReadOnlyList<RunicWatchTarget> Targets { get; } Gets the targets that changed, in the order they were passed to RunicPathWatcher.Start.
Methods
Contains
public bool Contains(RunicWatchTarget target) Gets whether target is among the changed targets.
Parameters
targetA target passed to
RunicPathWatcher.Start.