Added ignore_directories to ScanHandler.