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.

Windows command

copy wind.jpg x:\images

Python code

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