Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Recurse into target paths if -r is given #21

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

chelmertz
Copy link
Contributor

Adding -r lets the user specify a top level folder which we then descend into recursively.

Adding a large folder structure would have made the program grind to a halt before showing the rendered GUI. To avoid this, a safety limit of 500 total files is introduced (for both recursive and non-recursive finding of images). Users will probably not notice this, since handling that many files manually would be a tedious task.

By ignoring errors, we won't descend into those directories, but we will descend into everything else. This let's us cast a wide net with the input directories, and handle it optimistically.

Adding -r lets the user specify a top level folder which we then descend
into recursively.

Adding a large folder structure would have made the program grind to a
halt before showing the rendered GUI. To avoid this, a safety limit of
500 total files is introduced (for both recursive and non-recursive
finding of images). Users will probably not notice this,
since handling that many files manually would be a tedious task.

By ignoring errors, we won't descend into those directories, but we will
descend into everything else. This let's us cast a wide net with the
input directories, and handle it optimistically.
@jgalat jgalat merged commit ccfb588 into jgalat:master Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants