You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
chokidar sends add events for files and directories viewed on the initial scan. There is an option ignoreInitial to avoid doing it. It'd be nice to have an initial option for @atom/watcher to do the default behavior of chokidar on this aspect. It's particularly useful on linux where the watcher is already browsing the tree to tell inotify what directories to watch, as it would avoid to have to do it again outside of the watcher (it would costs more syscalls and introduces risk of race conditions).
Prerequisites
Description
chokidar sends
addevents for files and directories viewed on the initial scan. There is an optionignoreInitialto avoid doing it. It'd be nice to have aninitialoption for@atom/watcherto do the default behavior of chokidar on this aspect. It's particularly useful on linux where the watcher is already browsing the tree to tell inotify what directories to watch, as it would avoid to have to do it again outside of the watcher (it would costs more syscalls and introduces risk of race conditions).Steps to Reproduce
const w = await watcher.watchPath('/var/log', { initial: true }, events => { /* ... */ })Expected behavior:
It sends an event for the existing files and directories inside
/var/log.Actual behavior:
Nothing currently.
Versions
Master
Additional Information
It's a suggestion of an improvement, not a bug report.