- ajouté le workshop

This commit is contained in:
Christian Zufferey
2018-10-05 22:15:08 +02:00
parent 04f7369cfc
commit fcfe7960cd
29 changed files with 607 additions and 5 deletions

15
Workshop/181004/dir.lua Normal file
View File

@@ -0,0 +1,15 @@
-- fonction dir() pour afficher les fichiers dans la flash
print("\n dir.lua zf180826.1019 \n")
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()