--print("mkdir",path);\r
local x = io.popen("mkdir "..path.." 2>&1"):read("*a");\r
end\r
-function encode(s) return s and (s:gsub("%W", function (c) return string.format("%%%x", c:byte()); end)); end\r
+function encode(s) return s and (s:gsub("%W", function (c) return string.format("%%%02x", c:byte()); end)); end\r
function getpath(username, host, datastore, ext)\r
ext = ext or "dat";\r
if username then\r