import yaml


def getfiles2dirs(files2dirs):
    """Returns dictionary (mapping files to destination directories) from YAML file."""
    with open(files2dirs) as yamlfile:
        config = yaml.safe_load(yamlfile)
    return config