def create_folder(path_name: str, is_file=False):
    """
    Make folder as well as all parent folders if not exists

    Args:
        path_name: full path name
        is_file: whether input is name of file
    """
    path_sep = path_name.replace('\\', '/').split('/')
    for i in range(1, len(path_sep) + (0 if is_file else 1)):
        cur_path = '/'.join(path_sep[:i])
        if not os.path.exists(cur_path): os.mkdir(cur_path)
def create_folder(path_name: str, is_file=False):
    """
    Make folder as well as all parent folders if not exists

    Args:
        path_name: full path name
        is_file: whether input is name of file
    """
    path_sep = path_name.replace('\\', '/').split('/')
    for i in range(1, len(path_sep) + (0 if is_file else 1)):
        cur_path = '/'.join(path_sep[:i])
        if not os.path.exists(cur_path): os.mkdir(cur_path)
def create_folder ( path_name : str , is_file = False ) : path_sep = path_name . replace ( '\\' , '/' ) . split ( '/' ) for i in range ( 1 , len ( path_sep ) + ( 0 if is_file else 1 ) ) : cur_path = '/' . join ( path_sep [ : i ] ) if not os . path . exists ( cur_path ) : os . mkdir ( cur_path )
Make folder as well as all parent folders if not exists

    Args:
        path_name: full path name
        is_file: whether input is name of file
Make folder as well as all parent folders if not exists