`fopen(path, 'r')` doesn't work with directories on Windows.