(target1: string, target2: string)
| 228 | } |
| 229 | |
| 230 | async copy(target1: string, target2: string) { |
| 231 | if (!this.checkPath(target2) || !this.check(target1)) throw new Error(ERROR_MSG_01); |
| 232 | const targetPath = this.toAbsolutePath(target1); |
| 233 | target2 = this.toAbsolutePath(target2); |
| 234 | return await fs.copy(targetPath, target2); |
| 235 | } |
| 236 | |
| 237 | mkdir(target: string) { |
| 238 | if (!this.checkPath(target)) throw new Error(ERROR_MSG_01); |
no test coverage detected