I'm going to punt on this because the function has no tests currently, and it would actually be a lot of work to contrive a scenario where there is an IOError or OSError here.