from pathlib import Path


def _process_args_directories(arguments):
    """Creates a consolidated list of directories to handle"""
    # Check directories:
    if len(arguments.directories) == 0:
        arguments.directories = [".", ]
    # convert to pathlib objects
    arguments.directories = tuple(
        map(Path, arguments.directories)
    )
    return arguments