Module:FileExists

From EarthMC
Jump to navigation Jump to search

Documentation for this module may be created at Module:FileExists/doc

local p = {}

function p.fileExists(filename)
    local title = mw.title.new(filename, 'File')
    if not title then
        return false
    end

    return title.exists
end

return p