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

Recursive depth argument for cmd line #21

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Conversation

EgorWeders
Copy link
Contributor

To see how it works change in main.c laser_list_directory 3 params to value bigger then -1 (-1 prints max available ).
You only need to implement cmd parsing for depth value ( int recursive_depth in opt struct for example).

@EgorWeders
Copy link
Contributor Author

With 0
изображение

With 1

изображение

With -1 it works like before

@EgorWeders EgorWeders marked this pull request as ready for review November 11, 2024 06:53
@EgorWeders
Copy link
Contributor Author

Usage : -r0 (only root dir content) , -rN (traverse recursively to max N depth of root dir content), -r (max available depth for root dir)

@jmattaa jmattaa merged commit 59f18e5 into jmattaa:main Nov 11, 2024
2 checks passed
@jmattaa
Copy link
Owner

jmattaa commented Nov 11, 2024

I have added documentation and ability to run --recursive=N using the long argument.

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.

Recursively printing all subdirectories produces a lot of unnecessary output.
2 participants