def get_file_metadata(self, file_path: str):
"""
Retrieves the metadata of a file in Dropbox.
"""
try:
metadata = self.dbx_team.as_admin(self.admin_id).files_get_metadata(file_path)
return metadata
except Exception as e:
print(f"Error retrieving file metadata for {file_path}: {e}")
return None
# return value JSON serialized
{'size': 806571,
'preview_url': None,
'sharing_info': {'modified_by': '****',
'read_only': False,
'parent_shared_folder_id': '****'},
'client_modified': '2022-01-10T13:45:52',
'file_lock_info': None,
'is_downloadable': True,
'rev': '****',
'name': '_file_name_.pdf',
'media_info': None,
'id': 'id:****',
'property_groups': None,
'content_hash': '****',
'export_info': None,
'path_display': None,
'parent_shared_folder_id': '****',
'server_modified': '2024-01-16T20:15:15',
'symlink_info': None,
'path_lower': None,
'has_explicit_shared_members': None}Above, you can see the example code and the return value. I'm trying to get the file metadata and read path_display, but the field is always empty. Is this an expected behavior?