Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Use a generator when listing already present files. #3

Open
raphigaziano opened this issue Sep 5, 2014 · 0 comments
Open

Use a generator when listing already present files. #3

raphigaziano opened this issue Sep 5, 2014 · 0 comments
Assignees

Comments

@raphigaziano
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant