From b5a1d8dfed1523d696329249d535f39f6aca9655 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 18 Jun 2020 15:20:11 +0200 Subject: [PATCH] find recursively relative to the theme directory --- access.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.lua b/access.lua index 7c51cd1..a7443bd 100644 --- a/access.lua +++ b/access.lua @@ -272,7 +272,7 @@ end function scandir(directory, callback) -- 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 callback(filename) end