watcher icon indicating copy to clipboard operation
watcher copied to clipboard

Renaming a directory leads to incorrect getEventsSince result

Open aleclarson opened this issue 4 years ago • 0 comments

Steps to repro

  • Create a directory foo (with foo/App.js inside)
  • Write a snapshot
  • Rename directory foo to bar
  • Call getEventsSince and notice these events in the resolved array:
    • { type: "delete", path: "foo" }
    • { type: "create", path: "foo/App.js" } <-- should be bar/App.js
    • { type: "create", path: "bar" }

Environment

  • @parcel/watcher v2.0.0-alpha.10
  • default backend
  • macOS 10.15.7

aleclarson avatar Mar 16 '21 01:03 aleclarson