integrate djvu support

This commit is contained in:
Qingping Hou
2012-03-04 23:23:01 +01:00
committed by Dobrica Pavlinusic
parent 4f46f9fa7a
commit 1b1fc2b3ae
6 changed files with 486 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ function FileSearcher:readdir()
if lfs.attributes(d.."/"..f, "mode") == "directory"
and f ~= "." and f~= ".." and not string.match(f, "^%.[^.]") then
table.insert(new_dirs, d.."/"..f)
elseif string.match(f, ".+%.[pP][dD][fF]$") then
elseif string.match(f, ".+%.[pP][dD][fF]$") or string.match(f, ".+%.[dD][jJ][vV][uU]$") then
file_entry = {dir=d, name=f,}
table.insert(self.files, file_entry)
--print("file:"..d.."/"..f)