Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix EPERM errors reading transient/locked files on Windows without Wa…
…tchman (#1007) Summary: Pull Request resolved: #1007 As reported in #1001, `fs.lstat` operations on Windows can fail with `EPERM` in certain circumstances - apparently when new files are either still being written or are about to be deleted. Currently, this bubbles up as a Watcher error, whereas it should be handled gracefully. Reportedly the OS will follow up with another event on the file when it's ready to read, so we may safely ignore `EPERM` in `add`/`change` event processing. NOTE: This raises the question of why we're watching build output/intermediate directories in the default React Native Metro config. We should almost certainly be ignoring them from Metro. ``` - **[Changelog]** Fix EPERM file watching errors on Windows. ``` Reviewed By: motiz88 Differential Revision: D46803761 fbshipit-source-id: 043b55cede80edfc77ab6be5753b6808aa2f1528
- Loading branch information