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 a namespace and stores the resulting file in the retrieved_files directory.

Unix command

cp /datamount/images/wind.jpg retrieved_files/wind.jpg

Python code

import shutil
shutil.copy("/datamount/images/wind.jpg", "retrieved_files/ \
wind.jpg")