moved _get_file_metadata to file_management_mixin