Support for watching directories.