fileexists()
← Back to Module fileio
Check whether a file exists
fileexists(filename)
filename
boolean
true
false
import fileio fileexists("/path/to/myfile.txt")
Documentation version: 1.1.03. Updated on: 11 February 2026.Dinfio is designed and written by Muhammad Faruq Nuruddinsyah. Copyright © 2014-2026. All rights reserved.