| 12345678910111213141516171819202122232425262728293031323334 |
- local luaCopyFileCfg= {}
- -- basepath 基础路径
- -- path 文件上层路径
- -- outputDis 输出后的文件上层路径
- -- fileName 文件名
- luaCopyFileCfg.FileCfg ={
- }
- function luaCopyFileCfg:Init()
- self.curindex = 1
- self.MaxIndex = #self.FileCfg
- self.curOutput = "_cn"
- end
- function luaCopyFileCfg:SetOutput(output)
- self.curOutput = output
- end
- function luaCopyFileCfg:GetNextCfg()
- if self.curindex >= self.MaxIndex then
- return {result = false}
- end
- local curCfg = self.FileCfg[self.curindex]
- self.curindex = self.curindex + 1
- local path = curCfg.basepath..curCfg.path..curCfg.fileName
- local outputPath = curCfg.basepath..curCfg.path..self.curOutput..'/'..curCfg.fileName
- return {result = true,path = path,outputPath = outputPath}
- end
- return luaCopyFileCfg
|