Example: Storing an object

Content Platform Tenant Management Help

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

This example stores an object named wind.jpg in the existing images directory by copying a file of the same name from the local file system.

Unix command

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

Python code

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