Example 4: Creating a symbolic link (NFS)

This example creates a symbolic link named big_dipper that references an object named ursa_major.jpg.

Unix command

ln -s /datamount/images/constellations/ursa_major.jpg
/datamount/constellations/common_names/big_dipper

Python code

import os
os.symlink("/datamount/images/constellations/ursa_major.jpg",
"/datamount/constellations/common_names/big_dipper"

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