(outputDIR string)
| 464 | } |
| 465 | |
| 466 | func cleanOutputDirectory(outputDIR string) error { |
| 467 | var joinedErrors error |
| 468 | |
| 469 | if err := os.Remove(path.Join(outputDIR, "auth0_main.tf")); err != nil && !os.IsNotExist(err) { |
| 470 | joinedErrors = errors.Join(err) |
| 471 | } |
| 472 | |
| 473 | if err := os.Remove(path.Join(outputDIR, "auth0_import.tf")); err != nil && !os.IsNotExist(err) { |
| 474 | joinedErrors = errors.Join(err) |
| 475 | } |
| 476 | |
| 477 | if err := os.Remove(path.Join(outputDIR, "auth0_generated.tf")); err != nil && !os.IsNotExist(err) { |
| 478 | joinedErrors = errors.Join(err) |
| 479 | } |
| 480 | |
| 481 | return joinedErrors |
| 482 | } |
| 483 | |
| 484 | // sanitizeResourceName will return a valid terraform resource name. |
| 485 | // |
no outgoing calls