is_file
Definition
-- @/lua/common/utils.lua:1062
path.is_file = function (filename)
local f = io.open(filename, "r")
if f ~= nil then
io.close(f)
return true
end
return false
end
Callers
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamBeautifier.lua
local function beautifyJBeamFiles(pathToBeautify)
local jbeamFilePaths = path.is_file(pathToBeautify) and {pathToBeautify} or FS:findFiles(pathToBeautify, "*.jbeam", -1, false, false)
--local jbeamFilePaths = FS:findFiles('/', "*.jbeam", -1, false, false)