Example 5: Retrieving an object (NFS)

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")

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.