(destPath: string)
| 105 | } |
| 106 | |
| 107 | check(destPath: string) { |
| 108 | if (this.isRootTopRath()) return true; |
| 109 | if (!this.checkPath(destPath)) return false; |
| 110 | if (!fs.existsSync(this.toAbsolutePath(destPath))) return false; |
| 111 | return true; |
| 112 | } |
| 113 | |
| 114 | cd(dirName: string) { |
| 115 | if (!this.check(dirName)) throw new Error(ERROR_MSG_01); |