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

feat: add a find downloads command #1

Merged
merged 2 commits into from Jul 21, 2021
Merged

Conversation

mitsuhiko
Copy link
Member

This adds a command to manually check the downloads folder for accidentally placed files.

Because browsers love to download files unprompted into the default download location it's not
uncommon for you to accidentally places files there you really don't want to retain there.
The find-downloads command can be useful for manual spot checking.


for entry in fs::read_dir(&download_dir)? {
let entry = entry?;
let attr = xattr::get(entry.path(), "com.apple.metadata:kMDItemWhereFroms");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, i had no idea

src/cli.rs Show resolved Hide resolved
@mitsuhiko mitsuhiko merged commit a17acce into main Jul 21, 2021
@mitsuhiko mitsuhiko deleted the feature/find-downloads branch July 21, 2021 12:37
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.

None yet

2 participants