2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
8
Task/Empty-directory/Lua/empty-directory-2.lua
Normal file
8
Task/Empty-directory/Lua/empty-directory-2.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function isemptydir(directory,nospecial)
|
||||
for filename in require('lfs').dir(directory) do
|
||||
if filename ~= '.' and filename ~= '..' then
|
||||
return false
|
||||
end
|
||||
end
|
||||
return true
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue