JohannesWiesner / demetrius

A repository for finding and copying files while preserving their folder structure
MIT License
2 stars 0 forks source link

Create separate function for duplicate check #4

Closed JohannesWiesner closed 7 months ago

JohannesWiesner commented 1 year ago

Code would be more readable if the duplicate checks would get their own function with their own doc-strings:

https://github.com/JohannesWiesner/demetrius/blob/1d4c6d3540a5ce0825675670a20920cf2157b8cd/demetrius.py#L166-L178

JohannesWiesner commented 1 year ago

Then it would be also more easy + readable to define how the index should look like (e.g. _idx or (idx))