1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-23 00:59:52 +02:00
This commit is contained in:
lxsang
2019-12-15 12:13:04 +01:00
parent 4cc896c1e1
commit 4af1130c5c
3 changed files with 48 additions and 61 deletions

View File

@ -117,13 +117,14 @@ vfs.write = function(path,data)
if header ~= nil then
local b64data = string.gsub(data, header,"")
local barr = std.b64decode(b64data)
if std.isBinary(osfile) then
bytes.write(barr,osfile)
bytes.write(barr,osfile)
--[[ if std.isBinary(osfile) then
else
local f = io.open(osfile, "w")
f:write(bytes.__tostring(barr))
f:close()
end
end ]]
else
return false, "Wrong data format"
end