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

Improve globbing. #46

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Improve globbing. #46

merged 2 commits into from
Apr 22, 2024

Conversation

skx
Copy link
Owner

@skx skx commented Apr 22, 2024

This pull-request closes #45 by improving the file-globbing we use for "DIR" and "ERA".

This needs more work in the future, I think, but we handle things the better way now:

  • Use ioutil.ReadDir to get all files in the correct directory
    • Taking into account the directory-prefix
  • Test each one against the CPM-provided pattern
    • i.e. "character by character, but ? always works".

skx added 2 commits April 22, 2024 21:57
This pull-request closes #45 by improving the file-globbing we
use for "DIR" and "ERA".

This needs more work in the future, I think, but we handle things the
better way now:

* Use ioutil.ReadDir to get all files in the correct directory
  * Taking into account the directory-prefix
* Test each one against the CPM-provided pattern
  * i.e. "character by character, but ? always works".
@skx skx marked this pull request as ready for review April 22, 2024 19:00
@skx skx merged commit 53e297d into master Apr 22, 2024
2 checks passed
@skx skx deleted the 45-glob branch April 22, 2024 19:01
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.

Our glob-handling is not ideal
1 participant