Question: how to check if file exists in lua?
Answer: filep() to check whether a path exists and it is a file. Use paths. dirp() to check whether it exists and it is a directory.