anandundavia / thanos-js

A casual (but dangerous) package that will let Thanos snap fingers and delete random files inside a directory
MIT License
426 stars 16 forks source link

Missing half of files after runnin thanos #3

Open Troyhy opened 5 years ago

Troyhy commented 5 years ago

Half of my files in node_modules got detroyed!

Stradivario commented 5 years ago

When this will be resolved ? I have a production today oh my gosh.... these open source projects...

anandundavia commented 5 years ago

"I saw how all these files got deleted. I keep telling everybody they should move on." If your package.json survived, just run npm install and all those files will be revived

dusklight00 commented 2 years ago

Should I add a flag --monitor-thanos which monitors which files are getting deleted and generates a thanos.log file at the specified location? We could also add a --weak-thanos flag that sends the file to recycle bin instead of permanently deleting it. We can use this library for it trash. I can try integrating that.

We could also add a command called save-us-galactus --logs [path-to-log-file] which basically tries reviving all the files from recycle bin mentioned by the log file.