GH_FileSystemEventServer

public sealed class GH_FileSystemEventServer
Provides a easy-to-use way to keep tabs on files.

Properties

AllPaths

#
Gets a list of all the paths currently under surveillance.
public static IEnumerable<string> AllPaths { get; }

Methods

AddWatcher

#
Add a new file watcher instance.
public static void AddWatcher(
owner,
The object that owns this watcher.
path,
The path of the file to watch.
callback
Callback delegate used during file changes.
)

RemoveWatcher

#
Remove all watchers that are linked to a specific object and a specific file path.
public static void RemoveWatcher(
owner,
path
)

RemoveWatcher

#
Remove all watchers that are linked to a specific object.
public static void RemoveWatcher(
owner
)