Create folders recursively. Args: path (str): Tree of folders to be created. Returns: None.
(path: str)
| 656 | |
| 657 | |
| 658 | def create_tree(path: str) -> None: |
| 659 | """ |
| 660 | Create folders recursively. |
| 661 | Args: |
| 662 | path (str): Tree of folders to be created. |
| 663 | |
| 664 | Returns: |
| 665 | None. |
| 666 | """ |
| 667 | # Recursively create a tree of folders. If the path already exists, delete it and create a new one. |
| 668 | if os.path.exists(path): |
| 669 | shutil.rmtree(path) |
| 670 | os.makedirs(path) |
| 671 | |
| 672 | |
| 673 | def get_training_test_stocks_as_string(general_hyperparameters): |