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

Will half get deleted? #5

Closed RyanMcArthur22 closed 5 years ago

RyanMcArthur22 commented 5 years ago

Probably not worth the time considering what the program does but,

It seems like just doing a random number for every file will allow less than half or more than half depending on the randomness.

Should be a check to ensure exactly half occur.

Could assign a value at random to every file and then only take the top 50%.

jschwinger233 commented 5 years ago

Agreed, Thanos would LOVE to do it.

anandundavia commented 5 years ago

This has been in my bucket for so long. Finally closing this issue. with the version 0.0.10, exactly half of the files will get deleted.

Also, --with-infinity-gauntlet-glove flag would kind of be mandatory.

anandundavia commented 5 years ago

Aye crap, I should have created a PR for that so that I could reference it here. Anyways, I directly pushed it to master