【亦秋】iapp 删除文件夹内所有文件
代码
s files="路径"
//不能输入绝对路径
fn file_mk.delfile(files)
//调用函数
//file_mk.myu模板里放入以下代码
fn delfile(files)
sr(files,"%","",file)
fdir(a)
ss(a+"/"+file,fls)
fl(fls,fvs)
for(filev;fvs)
{
ss(files+filev,luj)
fd(luj,fds)
sr(fds,"true","删除成功",fds)
sr(fds,"false","删除失败",fds)
ss("文件路径:"+luj+"删除状态:"+fds,vs)
syso(vs)
}
end fnhttp://cdn.u1.huluxia.com/g4/M02/2D/62/rBAAdl9NIXmAURgDAAASQHnJck0929.png
http://cdn.u1.huluxia.com/g4/M03/2C/77/rBAAdl9Mq4mATUJRAAELLgGmAME918.jpg
页:
[1]