Vert.x support for large directories and file watch

256 views
Skip to first unread message

Christopher Probst

unread,
Jul 25, 2013, 8:37:47 AM7/25/13
to ve...@googlegroups.com
Hi,

what do you think about a filesystem extension for listing the content of large directories (using the DirectoryStream in Java 7) ?
Probably a further extension for recursively iterating a directory ? (Using Files.walkFileTree which uses DirectoryStream internally) ?

In addition: I think support for watching files could be really useful using the Watch Service API (Java 7, .. again )

Since Vert.x is based on Java 7 I think those features would be really great. Or do you think this functionality should be exposed through a module ?

Regards,
chris

Daryl Teo

unread,
Jul 26, 2013, 4:10:51 AM7/26/13
to ve...@googlegroups.com
I agree that this is useful. Problem, though, is that the watch service api does require its own thread as it is blocking.

I believe that this functionality should be in core, exposed through FileSystem API.

I already have a working implementation of a directory watcher (together with ANT style path includes/excludes) but I'm currently using it for other purposes at the moment. https://github.com/darylteo/directorywatcher 

Daryl
Reply all
Reply to author
Forward
0 new messages