Template repo for tiny cross-platform apps that can be modified on phone, tablet or computer.
directory_contents = function(directory)
	contents = {}
	local filenames = App.files(directory)
	for _,filename in ipairs(filenames) do
		local file_info = App.file_info(directory..filename)
		if file_info.type == 'file' then
			table.insert(contents, filename)
		end
	end
	table.sort(contents)
	return contents
end