Merge 0.10->trunk
[prosody.git] / util / paths.lua
index 3e5744df3678d3aac1105ec0837e7242da2185af..89f4cad9d7c4f14d6af3488d895e50df1c41b976 100644 (file)
@@ -1,3 +1,5 @@
+local t_concat = table.concat;
+
 local path_sep = package.config:sub(1,1);
 
 local path_util = {}
@@ -35,4 +37,8 @@ function path_util.glob_to_pattern(glob)
        end).."$";
 end
 
+function path_util.join(...)
+       return t_concat({...}, path_sep);
+end
+
 return path_util;