first commit

This commit is contained in:
Christian Zufferey
2018-07-22 12:43:16 +02:00
parent 0fa4e7727e
commit 3149e7ecc8
54 changed files with 3043 additions and 0 deletions

15
dir.lua Normal 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()