Change DirectoryScanner, only one call scanFileTree, no more two calls needed.