Hello,
I got an error and windows corona simulator has stopped working,
local lfs = require "lfs" local docs\_path = system.pathForFile( "", system.TemporaryDirectory ) local success = lfs.chdir( docs\_path ) -- returns true on success local folderpath="node-"..nodeid print(folderpath) if (success) then lfs.mkdir( folderpath ) print("create dir") local doc\_path=system.pathForFile(folderpath,system.TemporaryDirectory) print(doc\_path) -- network request url="http://simple.com/getnid?nid="..nodeid filename="node"..nodeid..".json" --download content json network.download( url, "GET", netlis, net\_parms, filename, doc\_path) end
I know how to fix it the fix code is
local lfs = require "lfs" local docs\_path = system.pathForFile( "", system.TemporaryDirectory ) local success = lfs.chdir( docs\_path ) -- returns true on success local folderpath="node-"..nodeid print(folderpath) if (success) then lfs.mkdir( folderpath ) print("create dir") local doc\_path=system.pathForFile(folderpath,system.TemporaryDirectory) print(doc\_path) -- network request url="http://simple.com/getnid?nid="..nodeid filename="node"..nodeid..".json" --download content json network.download( url, "GET", netlis, net\_parms, folderpath.."/"..filename, system.TemporaryDirectory) end
but I reported for the corona simulator fix the bug