Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 168 Bytes

python.md

File metadata and controls

4 lines (4 loc) · 168 Bytes

Iterate over files in a directory (.xml in the example)

file_list = [file for file in os.scandir(dir_to_parse) if file.name.split('.')[-1] == 'xml']