Update code with fix for 0 byte files and corresponding test case.