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
Add --min-depth option #404
Comments
Thank you for the feedback. Please see my comment in #390. |
Thank you for fast reply. That's where |
Similarly,
Agreed, it's not as pretty as |
I didn't think about that. It will take some additional checks and handlers, but I'll figure it out, I guess. |
Hey! I have a case where I want to do
To try to get around bash glob expansion, I used single quotes, but get another error:
Unless I'm missing something, this might be a good motivation for including the |
I was about to write that you could use fd -pg '/base/path/*/*/*/*' but that doesn't actually work, because I think behavior is actually surprising and we should probably change this. We still have |
That said, I kind of agree that |
Add new `--min-depth <depth>` and `--exact-depth <depth>` options in addition to the existing option to limit the maximum depth. closes #404
@sharkdp Thank you for thinking about my use case and considering incorporating it into your project. I agree the glob workaround isn't very intuitive, so the |
Add new `--min-depth <depth>` and `--exact-depth <depth>` options in addition to the existing option to limit the maximum depth. closes #404
This has now been released in fd v8.0. |
We have
--max-depth
option, but there is no--min-depth
counterpart. It could be used exactly like it's been used withfind
.The text was updated successfully, but these errors were encountered: