filespy icon indicating copy to clipboard operation
filespy copied to clipboard

[RFC] Emit "create" event for root directory if created after

Open aleclarson opened this issue 4 years ago • 1 comments

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

aleclarson avatar Mar 21 '21 17:03 aleclarson

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. 🤔

aleclarson avatar Mar 21 '21 17:03 aleclarson