<div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>Is there a way to check io.error programmatically?</div><div><br></div><div>I see a number of functions which return it, but it's type definition isn't published and the docs just say:  Use io.error_message to decode it.</div><div><br></div><div>This returns a, presumably localized, string for an end user.</div><div><br></div><div>My specific use case is to test if a file exists at all, and take different action based on it's existence.   I can manage that with io.call_system, but this isn't exactly portable, and seems a bit messy.</div><div><br></div><div><br></div><div>Thanks!</div><div><br></div><div>Charles<br></div></div></div>