jurismarches/trellobackup

Use a generator when listing already present files.

Opened this issue · 0 comments

The get_current_files function build a list of all files already present in the repo, in order to delete them if needed.

This list could potentially grow quite big - Using a generator would be a neat and easy way to reduce memory usage, as we only want to iterate over them once.