GH_FileSystemEventServer

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

Properties

AllPaths

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

Methods

AddWatcher

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

RemoveWatcher

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

RemoveWatcher

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