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

Original Detection: Rank by depth when piping files from find #660

Open
Philipp-Binder opened this issue Apr 28, 2024 · 0 comments
Open

Comments

@Philipp-Binder
Copy link

Is there a way for Original Detection to rank by depth (-S D) when piping files from find?

When piping files with find . -type f every listed file in json-output has depth 0.
Ranking by depth has no effect then.

I have a filesystem where I need to exclude specific auto-generated subfolders.
So I need to use find . -type f ! -path '*/excluded/*', at least I see no other way to achieve that.
Additionally I do know about my file-structure, that deeper paths are the originals.
But since rmlint sets depth=0 to all files, I cannot use that for Original Detection.

Is there another way to achieve this?
Or maybe there should be a feature-request to adjust how depth is determined, either by traversal-depth or by absolute path-depth?

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

1 participant