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

File list #22

Closed
wants to merge 4 commits into from
Closed

File list #22

wants to merge 4 commits into from

Conversation

benshep
Copy link
Contributor

@benshep benshep commented Nov 2, 2016

Add a --file-list option to provide a file with a list of files to scan (one per line). Use - to get the list from stdin, which may be useful for piping output from other tools.

The file handle (or a handle to stdin) is passed to the Bitrot object, which is responsible for reading the list. I did it here (rather than pass the list) so that Bitrot can then work out a total size.

No provision for wildcards - this could be added too (but obviously it would be more complex, and it might be better handled by piping output from ls or dir).

Existing entries in the db that aren't on the list will be deleted. This may be desirable or not - depends on the use case I suppose. Might be worth adding another command-line flag to control this behaviour.

Show current filename along with progress percentage. Shortens paths that are too long for the output window by inserting an ellipsis (...) in the middle.
Corrected assumed 'utf-8' encoding
Show filename in progress update
--file-list option: only use files specifically listed (in file or stdin)
@ambv
Copy link
Owner

ambv commented Aug 2, 2023

This PR is stale, closing.

@ambv ambv closed this Aug 2, 2023
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.

2 participants