Implemented DirectoryProcessor with tests.