def get_files_priorities(torrent_data):
    """Returns a dictionary with files priorities, where
    filepaths are keys, and priority identifiers are values."""
    files = {}
    walk_counter = 0
    for a_file in torrent_data['files']:
        files[a_file['path']] = torrent_data['file_priorities'][walk_counter]
        walk_counter += 1
    return files
