oas_dev/util/practical_functions.py
def make_folders(path):
    """
    Takes path and creates to folders
    :param path: Path you want to create (if not already existant)
    :return: nothing
    """
    path = extract_path_from_filepath(path)
    split_path = path.split('/')
    if (path[0] == '/'):

        path_inc = '/'
    else:
        path_inc = ''
    for ii in np.arange(len(split_path)):
        # if ii==0: path_inc=path_inc+split_path[ii]
        path_inc = path_inc + split_path[ii]
        if not os.path.exists(path_inc):
            os.makedirs(path_inc)
        path_inc = path_inc + '/'

    return

    Takes path and creates to folders
    :param path: Path you want to create (if not already existant)
    :return: nothing
    
Takes path and creates to folders
Takes path and creates to folders
def make_folders(path):
    path = extract_path_from_filepath(path)
    split_path = path.split('/')
    if (path[0] == '/'):
        path_inc = '/'
    else:
        path_inc = ''
    for ii in np.arange(len(split_path)):
        path_inc = path_inc + split_path[ii]
        if not os.path.exists(path_inc):
            os.makedirs(path_inc)
        path_inc = path_inc + '/'
    return
def make_folders ( path ) : path = extract_path_from_filepath ( path ) split_path = path . split ( '/' ) if ( path [ 0 ] == '/' ) : path_inc = '/' else : path_inc = '' for ii in np . arange ( len ( split_path ) ) : path_inc = path_inc + split_path [ ii ] if not os . path . exists ( path_inc ) : os . makedirs ( path_inc ) path_inc = path_inc + '/' return
Takes path and creates to folders
Takes path and creates to folders
"""
    Takes path and creates to folders
    :param path: Path you want to create (if not already existant)
    :return: nothing
    """ # if ii==0: path_inc=path_inc+split_path[ii]
None
path
Path you want to create (if not already existant)
Path you want to create ( if not already existant )