Skip to content

feat: multiple files as args in purge/recover#5

Merged
vimlinuz merged 8 commits intomainfrom
multiple_files
Aug 31, 2025
Merged

feat: multiple files as args in purge/recover#5
vimlinuz merged 8 commits intomainfrom
multiple_files

Conversation

@vimlinuz
Copy link
Owner

user can now pass multiple files or content to the command that can recover all the passed content as well as the content that are to be deleted completely from the trash

Copy link
Owner Author

@vimlinuz vimlinuz left a comment

Choose a reason for hiding this comment

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

some performance improvement can be done there

src/main.rs Outdated
if let Err(e) = recover_from_trash(name) {
eprintln!("Error recovering from trash: {e}");
let contents_to_recover = args.get_recover_name();
for content in contents_to_recover {
Copy link
Owner Author

Choose a reason for hiding this comment

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

same here

src/main.rs Outdated
if let Err(e) = purge(filename) {
eprintln!("Error removing the content from the bin: {e}")
let files_to_purge = args.get_purge_name();
for file in files_to_purge {
Copy link
Owner Author

Choose a reason for hiding this comment

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

Calling os_limited multiple time is performance heavy

@vimlinuz vimlinuz merged commit d83b7e4 into main Aug 31, 2025
2 checks passed
@vimlinuz vimlinuz deleted the multiple_files branch August 31, 2025 09:45
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.

1 participant