mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
18 lines
246 B
Lua
18 lines
246 B
Lua
local M = {}
|
|
|
|
function M.file_exists(fname)
|
|
if fname == nil then
|
|
return false
|
|
end
|
|
|
|
local f = io.open(fname, "r")
|
|
if f ~= nil then
|
|
io.close(f)
|
|
return true
|
|
else
|
|
return false
|
|
end
|
|
end
|
|
|
|
return M
|