file.get_by_id()

file = project.file.get_by_id(id = id)
Get File object by known file id.

file.update()

Arguments include
instance_list For images
frame_packet_map For video

file = project.file.get_by_id(id = id)

file.update(frame_packet_map = frame_packet_map)

https://github.com/diffgram/diffgram/blob/master/sdk/diffgram/file/test_existing_instances.py#L130

file.copy()

dataset = project.directory.get(name='Default')
destination_dataset = project.directory.get(name='my destination dataset') 
file_to_copy = dataset.list_files()[0] 
copied_file = file.copy(destination_dir=destination)
print('ID of copied File: {}'.format(copied_file.id)

📘

Other file methods see Input docs


Did this page help you?