filespy
filespy copied to clipboard
[RFC] Emit "create" event for root directory if created after
Filespy waits for the root directory to exist before starting the watcher.
If the root directory did not exist before filespy was called, should it emit a create event (with an empty path) once the root directory exists?
emit(CREATE, '', cwd) // like this
I suppose we already have the ready event, although it's emitted after create events from the initial crawl. Not sure if there's a good use case for knowing about the root directory's creation before its descendants. 🤔