src/proteingnn/data.py
def create_dir(path: AnyPath, overwrite: bool = False) -> bool:
    """Create (and overwrite) path directory."""
    path = Path(path)
    if overwrite:
        shutil.rmtree(path)

    path.mkdir(parents=True, exist_ok=True)
    return True
Create (and overwrite) path directory.
Create (and overwrite) path directory.
Create ( and overwrite ) path directory .
def create_dir(path: AnyPath, overwrite: bool = False) -> bool:
    path = Path(path)
    if overwrite:
        shutil.rmtree(path)
    path.mkdir(parents=True, exist_ok=True)
    return True
def create_dir ( path : AnyPath , overwrite : bool = False ) -> bool : path = Path ( path ) if overwrite : shutil . rmtree ( path ) path . mkdir ( parents = True , exist_ok = True ) return True
Create (and overwrite) path directory.
Create ( and overwrite ) path directory .
"""Create (and overwrite) path directory."""
path
AnyPath
overwrite
bool