void InitFileSystemWatcher(string dir) { fsw.NotifyFilter = NotifyFilters.LastWrite; fsw.IncludeSubdirectories = true; fsw.Changed += (obj, e) => etagCache[Path.Combine (dir, e.Name)] = GetEtagFromFile (e.FullPath); fsw.EnableRaisingEvents = true; }