def create_tasks(folder, task_queue, scandir=scandir, get_path=get_path):
    """
        Creates one task for each file on a folder
    """
    tasks = []
    for idx, f in enumerate(scandir(folder)):
        path = get_path(folder, f)
        task = idx, path
        tasks.append(task)
        task_queue.put(task)
    return tasks
