Example: Retrieving an object

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

This example retrieves the object named wind.jpg from the namespace and stores the resulting file with the same name in the existing RetrievedFiles directory.

Windows command

copy x:\images\wind.jpg RetrievedFiles

Python code

import shutil
shutil.copy("x:\\images\\wind.jpg", "RetrievedFiles\\wind.jpg")