How to check if a file is executable in Lua?
snippet in lua

How to check if a file is executable in Lua?

user4431

#!lua 
local lfs = require 'lfs'
attr = lfs.attributes('./some_file')
for name, value in pairs(attr) do
    print (name,value)
    end