| # Copyright 2020-present, Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, Simone Calderara. | |
| # All rights reserved. | |
| # This source code is licensed under the license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| import os | |
| def create_if_not_exists(path: str) -> None: | |
| """ | |
| Creates the specified folder if it does not exist. | |
| :param path: the complete path of the folder to be created | |
| """ | |
| if not os.path.exists(path): | |
| os.makedirs(path) | |