tools/utils.py
def delete_dir_files(directory):
    """ A function that does rm -rf

    Positional arguments:
    directory - the directory to remove
    """
    if not exists(directory):
        return

    for element in listdir(directory):
        to_remove = join(directory, element)
        if not isdir(to_remove):
            remove(file)
 A function that does rm -rf

    Positional arguments:
    directory - the directory to remove
    
A function that does rm -rf
Positional arguments:
directory - the directory to remove
A function that does rm - rf Positional arguments : directory - the directory to remove
def delete_dir_files(directory):
    if not exists(directory):
        return
    for element in listdir(directory):
        to_remove = join(directory, element)
        if not isdir(to_remove):
            remove(file)
def delete_dir_files ( directory ) : if not exists ( directory ) : return for element in listdir ( directory ) : to_remove = join ( directory , element ) if not isdir ( to_remove ) : remove ( file )
A function that does rm -rf
Positional arguments:
directory - the directory to remove
A function that does rm - rf Positional arguments : directory - the directory to remove
""" A function that does rm -rf

    Positional arguments:
    directory - the directory to remove
    """
directory