mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Merge pull request #141 from moutonjr/pv-remove-lua-bug-cd
Fixed: bug serving files because of LUA exception
This commit is contained in:
commit
07e8a292f9
1 changed files with 1 additions and 3 deletions
|
@ -317,10 +317,8 @@ end
|
|||
--
|
||||
|
||||
function scandir(directory, callback)
|
||||
-- FIXME : this sometime fails (randomly...)
|
||||
-- because of 'interrupted system call'
|
||||
-- use find (and not ls) to list only files recursively and with their full path relative to the asked directory
|
||||
local pfile = io.popen('cd "'..directory..'" && find * -type f')
|
||||
local pfile = io.popen('find "'..directory..'" -type f')
|
||||
for filename in pfile:lines() do
|
||||
callback(filename)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue