HNHacker News
TopNewBestAskShowJobs

Amine_Ztn

56 karma · joined October 11, 2022

submissionscomments
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
I just fixed the problem, thanks for pointing it out! :D
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
It's my first project in rust, I didn't really know how to go about getting the most practical installation possible. But thanks for the feedback, I'll work to make the process easier.
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
This is a great idea! I hadn't thought about it. I'm currently fixing the major bugs and refactoring the code a bit, and when I finish that, I'll get to your idea, I find it really interesting.
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
When a person delete an item, I get all the information that are interesting for me (https://github.com/AmineZouitine/rmt.rs/blob/main/src/trash_...), and then I move it in a .trash folder in which I rename it with a hash (the hash is made with several parameters to avoid any collision), I then store the information in a database sqlite :)
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
Thanks ! I have many ideas to make the project much more interesting, including adding automatic flush (that the user will have configured), the ability to compress the file before entering the trash etc ... Do you have any ideas in mind?
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
I followed your advice and fixed the problems, I updated the readme and the deployment of the new version (0.1.2) should arrive in 1 hour.

I thank you for raising these points.

Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
thank you for your feedback, I take it all into consideration, I will try to fix it during the day :D
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
I'm fixing the bugs after the feedback and then I'm fixing the Windows problem, I'm using a crate that is not cross-platform for the input management
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
This was my initial idea but unfortunately there can be name conflicts, if two files or folders have the same name, this idea does not work anymore. Also, I wanted to be able to keep the initial path to restore the element directly where it was deleted.
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
This was my initial idea but unfortunately there can be name conflicts, if two files or folders have the same name, this idea does not work anymore. Also, I wanted to be able to keep the initial path to restore the element directly where it was deleted.
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
Hi, thanks for your comment! I fix a lot of things with the numerous feedbacks, and I have a lot of ideas to make the project really interesting and different from what we can find :D
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
Thank you for your comment, I try to get as close as possible to the signature of the real rm command in order to facilitate aliasing, plus I have many ideas to improve my project that are not necessarily available on rip
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
Ok thanks a lot, I'll work on fixing that!
Amine_Ztn··on Show HN: Rmt an alternative to rm with trash written in Rust
You are totally right, thank you for the pertinent comment and I will correct that. This is one of the first cli's I had not thought of at all.