Code snippets‎ > ‎Lua‎ > ‎

LFS

Lua file system

The lua file system is a wrapper around file system operations. This project can be used to create the package (which was focussed on Linux).

Iterate over files in a directory

for file in lfs.dir(lfs.currentdir()) do
   --file is the current file or directory name
   print( "Found file: " .. file )
end
ċ
luafilesystem.zip
(246k)
Nico Kruithof,
May 28, 2015, 7:38 AM
Comments