Fixing issue with getSize failing because file not there