(target: string, destPath: string)
| 252 | } |
| 253 | |
| 254 | async move(target: string, destPath: string) { |
| 255 | if (!this.check(target)) throw new Error(ERROR_MSG_01); |
| 256 | if (!this.checkPath(destPath)) throw new Error(ERROR_MSG_01); |
| 257 | const targetPath = this.toAbsolutePath(target); |
| 258 | destPath = this.toAbsolutePath(destPath); |
| 259 | await fs.move(targetPath, destPath); |
| 260 | } |
| 261 | |
| 262 | async unzip(sourceZip: string, destDir: string, code?: string) { |
| 263 | if (!code) code = this.fileCode; |
no test coverage detected