atom / watcher

Atom Filesystem Watcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect deletion entry kinds on Windows

smashwilson opened this issue · comments

ReadDirectoryChangesW does not provide us with metadata about the filesystem entries that generated each event. For "created" and "modified" events we can stat the entries to see if they're files or directories, but we can't do that for "deleted" events.

  • Generalize the RecentFileCache from the MacOS worker thread to use libuv's filesystem API.
  • Use cached stat results to infer the kind of deleted entries, if found.