Task 5: Filtering files in a directory