Create a folder if it does not already exist. Args: folder_path: Path of the folder to create.
(folder_path: str)
| 35 | |
| 36 | |
| 37 | def create_folder(folder_path: str) -> None: |
| 38 | """ |
| 39 | Create a folder if it does not already exist. |
| 40 | |
| 41 | Args: |
| 42 | folder_path: Path of the folder to create. |
| 43 | """ |
| 44 | if not os.path.exists(folder_path): |
| 45 | os.makedirs(folder_path) |
| 46 | |
| 47 | |
| 48 | def get_category(file_ext: str) -> str: |