Skip to content

Use early returns

For example here, we can use

if not folder.is_dir():
    raise Exception("the path indicated does not lead to a folder.")

list_bio_file = list(folder.rglob("*.bio"))
# ...

We need to check all files