maybe just `return totalSize == fileInfo.length();`