Class VfsWatcher¶
Namespace: Apogee.Content.FileSystem
Assembly: Apogee.Content.dll
Notices when files of a res://packages/core is also
mod://core). Saving a file usually makes several events (a temporary file, a rename, a write): a path is reported once, after it has been quiet for debounce.
Files and folders whose name starts with a dot, and editors' temporary files, are ignored. Create it after the mounts; call
public sealed class VfsWatcher : IDisposable
Inheritance¶
Implements¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
VfsWatcher(VirtualFileSystem, TimeSpan?)¶
public VfsWatcher(VirtualFileSystem files, TimeSpan? debounce = null)
Parameters¶
files VirtualFileSystem
debounce TimeSpan?
Methods¶
Dispose()¶
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
TakeChanges()¶
The paths that changed and have been quiet for the debounce time, sorted; each is returned once.
public IReadOnlyList<string> TakeChanges()