        do {
            guard let filteredFileEnumerator = try fileEnumerator?.filter(filterClosure) as? [String] else {
                print("Error filtering files.")
                exit(2)
            }
 
            return filteredFileEnumerator
        } catch {