- ajouté les fichiers Lua à Hugo :-)

This commit is contained in:
Christian Zufferey
2018-07-22 12:47:37 +02:00
parent 4608e4092e
commit 26d3f422cd
31 changed files with 1346 additions and 0 deletions

15
Hugo/u_dir.lua Executable file
View File

@@ -0,0 +1,15 @@
-- fonction dir() pour afficher les fichiers dans la flash
-- zf180717.1542
function dir()
print("\n-------------------------------")
l=file.list() i=0
for k,v in pairs(l) do
i=i+v
print(k..string.rep(" ",19-string.len(k)).." : "..v.." bytes")
end
print("-------------------------------")
print('\nUsed: '..i..' bytes\nusage: dofile("file.lua")\n')
end
dir()