elliot40404 / bonk

The blazingly fast touch alternative with a sprinkle of mkdir written in rust.
MIT License
97 stars 9 forks source link

bonk will fail to touch existing files #4

Closed BartMassey closed 1 year ago

BartMassey commented 1 year ago

If you bonk a file that has existing content, that content will be truncated by std::fs::File::create().

BartMassey commented 1 year ago

No it won't. My bad. Instead it will refuse to touch the file, crashing with an error.

elliot40404 commented 1 year ago

Currently bonk only creates file if they do not exist

BartMassey commented 1 year ago

That's fine, but in this case please don't describe it as a "touch alternative" in the README. That description carries with it the expectation that bonk will have the core function of touch, namely updating the write time of a file.