Checking that the folder was continuesly mounted while the long operation was being performed.
I have external hard-drive where I store backups created by MacOS TimeMachine. This hard drive is connected by usb dock-station, which is not protected from power failure. I just wanted to be sure, that, first TimeMachine backup (which is quite a lengthy operation) was not interrapted.
# assume that you already have ruby on your computer
# if no, go to https://rvm.io/
# clone this mini-project
git clone [email protected]:91f53fc0aa7ef15c57ea0460be26b579.git folder_check
cd folder_check
# edit and run your checks
ruby run.rb
# run some long operation and go calmly about your business
# stop by Ctrl + C
# run check for time gaps (did the folder was contnuesly mounted?)
ruby check.rb