I usually put Lua in a group of Perl/Python/Ruby/PHP/_javascript_. All of these do have these basic filesystem calls in their base libraries.