{"title":"重命名","inframe":false,"hidden":false,"roles":{"dev":1},"pageLink":"","children":[{"configs":{"serverScript":"var file, data = app.get(),\n  newFile;\nfile = new File(data.path, data.oldName);\nnewFile = new File(data.path, data.newName);\nif (!file.renameTo(newFile))\n  Wb.error('重命名 \u201c' + data.oldName + '\u201d 失败。');\napp.send({\n  icon: WebUtil.encode(FileUtil.getPath(newFile))\n});","itemId":"module"},"children":[],"type":"module","expanded":false}],"iconCls":""}