var file,dir = fsys.list(request.path,,"*.*");
for(i=1;#dir;1){
response.write('<li><a href="'
,inet.url.append(request.path,dir[ i ])
,'">'+tostring(i)+") /",dir[ i ],'/</a><br>\r\n');
}
for(i=1;#file;1){
response.write('<li><a href="'
,inet.url.append(request.path,file[ i ])
,'">'+tostring(i)+") ",file[ i ],'</a><br>\r\n');
}
}
);
var qrcode_url="";
var startUrl =srvHttp.getUrl(,true);//获取服务器访问地址
//生成二维码
function make_qrcode(url){
var qrBmp = qrencode.bitmap(url,0,0);
mainForm.plus.setBackground(qrBmp.copyBitmap(mainForm.plus.width));
mainForm.plus.redraw()
}
//根据拖入的文件目录重置服务器
function reload_server(folder,filename){
srvHttp.documentRoot = folder;
srvHttp.start();
var startUrl =srvHttp.getUrl(,true);//自动生成随机端口
qrcode_url = startUrl++"/"++inet.url.encode(filename);
mainForm.edit.text = qrcode_url;