Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Add glob? #1

Closed
killercup opened this issue Jan 21, 2018 · 0 comments
Closed

Add glob? #1

killercup opened this issue Jan 21, 2018 · 0 comments

Comments

@killercup
Copy link
Owner

killercup commented Jan 21, 2018

Do typical Rust CLI apps use glob-style queries to access files and directories?

http://docs.rs/glob

killercup added a commit that referenced this issue Jan 26, 2018
I'm not really happy with this name.

Maybe we should directly convert this to a `Vec`? And skip all files we
can't read? I think that currently, you'll write this a lot:

```rust
let files = glob("*.txt")?.filter_map(|x| x.ok()).collect();
```

Fixes #1 for now
killercup added a commit that referenced this issue Jan 28, 2018
I'm not really happy with this name.

Maybe we should directly convert this to a `Vec`? And skip all files we
can't read? I think that currently, you'll write this a lot:

```rust
let files = glob("*.txt")?.filter_map(|x| x.ok()).collect();
```

Fixes #1 for now
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