-- File did probably not exist, let's create it
f, msg = io_open(filename, "w");
if not f then
- return nil, msg;
+ return nil, msg, "open";
end
end
ok, msg = f:write(data);
if not ok then
f:close();
- return ok, msg;
+ return ok, msg, "write";
end
ok, msg = f:close();
return ok, msg;
end
- return true;
+ return true, pos;
end
local function list_append(username, host, datastore, data)
getpath = getpath;
load = load;
store = store;
+ append_raw = append;
list_append = list_append;
list_store = list_store;
list_load = list_load;