Created the DirectoryMonitor component.