mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
find recursively relative to the theme directory
This commit is contained in:
parent
20de3f5f37
commit
b5a1d8dfed
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ end
|
||||||
|
|
||||||
function scandir(directory, callback)
|
function scandir(directory, callback)
|
||||||
-- use find (and not ls) to list only files recursively and with their full path relative to the asked directory
|
-- use find (and not ls) to list only files recursively and with their full path relative to the asked directory
|
||||||
local pfile = io.popen('find "'..directory..'" -type f -printf \"%f\n\"')
|
local pfile = io.popen('find "'..directory..'" -type f -exec realpath --relative-to "'..directory..'" {} \\;')
|
||||||
for filename in pfile:lines() do
|
for filename in pfile:lines() do
|
||||||
callback(filename)
|
callback(filename)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue