(fileName: string, data: string)
| 212 | } |
| 213 | |
| 214 | async writeFile(fileName: string, data: string) { |
| 215 | if (!this.check(fileName)) throw new Error(ERROR_MSG_01); |
| 216 | const absPath = this.toAbsolutePath(fileName); |
| 217 | const buf = iconv.encode(data, this.fileCode || "utf-8"); |
| 218 | return await fs.writeFile(absPath, buf); |
| 219 | } |
| 220 | |
| 221 | async newFile(fileName: string) { |
| 222 | // if (!FileManager.checkFileName(fileName)) throw new Error(ERROR_MSG_01); |
no test coverage detected