* Makes a folder based on a folder template (copy the folder)
(templateFolder: string, destinationFolder: string, createDestinationIfNotExists = true)
| 121 | * Makes a folder based on a folder template (copy the folder) |
| 122 | */ |
| 123 | copyFolderIfNotExists(templateFolder: string, destinationFolder: string, createDestinationIfNotExists = true): void { |
| 124 | if(this.folderDoesNotExist(destinationFolder)) { |
| 125 | if(createDestinationIfNotExists) { |
| 126 | this.makeFolderFromPathIfNotExists(destinationFolder) |
| 127 | } |
| 128 | |
| 129 | this.copyFolder(templateFolder, destinationFolder) |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | |
| 134 | copyFolder(templateFolder: string, destinationFolder: string): boolean { |
no test coverage detected