Naanou.ResourceExchange
Class FileWatcher

Watches filesystem and adds/remove resources from database when filesystem is changed

Field Summary
System.IO.FileSystemWatcher watch

Constructor Summary
FileWatcher(string path)
         Constructor

Method Summary
void OnCreated(object sender, System.IO.FileSystemEventArgs args)
void OnDeleted(object sender, System.IO.FileSystemEventArgs args)
void OnRenamed(object sender, System.IO.RenamedEventArgs args)

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

watch

private System.IO.FileSystemWatcher watch

Constructor Detail

FileWatcher

internal FileWatcher(string path)

Constructor

Parameters:
path - Path to watch
Method Detail

OnCreated

private void OnCreated(object sender,
                       System.IO.FileSystemEventArgs args)


OnDeleted

private void OnDeleted(object sender,
                       System.IO.FileSystemEventArgs args)


OnRenamed

private void OnRenamed(object sender,
                       System.IO.RenamedEventArgs args)