diff options
author | Marius <mariausol@gmail.com> | 2012-08-09 01:00:13 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-08-09 01:00:13 +0300 |
commit | 343077218254bccdd7e518c5cc74d473d0bbf605 (patch) | |
tree | b3b58ac303f7513cb39e1695fb8f29e8fd960519 /scripts/context/lua/mtx-convert.lua | |
parent | e3f2891a6167e2efe5b9cee3b374eec103cbb526 (diff) | |
download | context-343077218254bccdd7e518c5cc74d473d0bbf605.tar.gz |
beta 2012.08.08 23:45
Diffstat (limited to 'scripts/context/lua/mtx-convert.lua')
-rw-r--r-- | scripts/context/lua/mtx-convert.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-convert.lua b/scripts/context/lua/mtx-convert.lua index b4e6e010b..04ff38aad 100644 --- a/scripts/context/lua/mtx-convert.lua +++ b/scripts/context/lua/mtx-convert.lua @@ -83,7 +83,7 @@ function converters.convertpath(inputpath,outputpath) inputpath = inputpath or "." outputpath = outputpath or "." for name in lfs.dir(inputpath) do - local suffix = file.extname(name) + local suffix = file.suffix(name) if find(name,"%.$") then -- skip . and .. elseif converters[suffix] then @@ -102,7 +102,7 @@ function converters.convertpath(inputpath,outputpath) end function converters.convertfile(oldname) - local suffix = file.extname(oldname) + local suffix = file.suffix(oldname) if converters[suffix] then local newname = file.replacesuffix(oldname,"pdf") if oldname == newname then |