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

matching cleanup filenames by wildcard strings #57

Open
moimikey opened this issue Nov 1, 2021 · 1 comment
Open

matching cleanup filenames by wildcard strings #57

moimikey opened this issue Nov 1, 2021 · 1 comment

Comments

@moimikey
Copy link

moimikey commented Nov 1, 2021

would it be worth changing

if *val == cleanup.value {
to use .contains or some kind of glob matcher. I'm trying to delete all files in a directory and not the directory itself, because i want it to remain empty, but still present.

@Keats
Copy link
Owner

Keats commented Nov 2, 2021

It could work as a glob I think

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

No branches or pull requests

2 participants