removed dict comprehension in _get_file_metadata