|
|
@@ -16,7 +16,6 @@ import inspect |
|
|
|
import json |
|
|
|
import os |
|
|
|
import re |
|
|
|
import shutil |
|
|
|
import warnings |
|
|
|
from typing import TYPE_CHECKING, Any, Callable, Literal, Optional, overload |
|
|
|
|
|
|
@@ -532,12 +531,6 @@ def throw( |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
def delete_folder(path: str) -> None: |
|
|
|
"""Delete folder and all the content inside that folder.""" |
|
|
|
if os.path.exists(path): |
|
|
|
shutil.rmtree(path) |
|
|
|
|
|
|
|
|
|
|
|
def create_folder(path, with_init=False): |
|
|
|
"""Create a folder in the given path and add an `__init__.py` file (optional). |
|
|
|
|
|
|
|