diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-01-23 14:04:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-01-23 14:04:00 +0100 |
commit | cf8d8b0819c3b066d5217a11cb4cf6acf8598a3c (patch) | |
tree | d49ed98de75903363ea39c36d479808847769b53 /scripts | |
parent | 9efbe1124748237636331a479d3fd28d04bf3b34 (diff) | |
download | context-cf8d8b0819c3b066d5217a11cb4cf6acf8598a3c.tar.gz |
beta 2013.01.23 14:04
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-tools.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-tools.lua b/scripts/context/lua/mtx-tools.lua index c1aaf9e5d..22a83e603 100644 --- a/scripts/context/lua/mtx-tools.lua +++ b/scripts/context/lua/mtx-tools.lua @@ -124,7 +124,7 @@ function scripts.tools.dirtoxml() if mode == "file" then result[#result+1] = format("%s<file name='%s'>",d,(longname and path and join(path,name)) or name) result[#result+1] = format("%s <base>%s</base>",d,removesuffix(name)) - result[#result+1] = format("%s <type>%s</type>",d,extname(name)) + result[#result+1] = format("%s <type>%s</type>",d,suffixonly(name)) result[#result+1] = format("%s <size>%s</size>",d,attr.size) result[#result+1] = format("%s <permissions>%s</permissions>",d,sub(attr.permissions,7,9)) result[#result+1] = format("%s <date>%s</date>",d,date(timestamp,attr.modification)) |