Investigation, change the search function to dir.glob