"""
获取component的真实路径
"""
component['component_locations'][0]['resource_identifier']
location = component['component_locations'][0]['location']
if type(location) == ftrack_api.accessor.disk.DiskAccessor:
filepath = localtion.get_filesystem_path(component)
elif type(location) == nftrack.ftrack_api.accessor.server._ServerAccessor:
url = localtion.get_url(component)
version.create_component(tmp_filepath, data, location)
"""
tmp_filepath:
data: data = {'name': 'file',
'file_type': '.mb',
'metadata': {}}
创建component时,拷贝的文件名 = name + file_type
location:
"""