How to create symlinks in Python

We can use the method symlink() to create symlinks in Python. This utility comes with the Python os module.

Syntax of this method is as given below.

os.symlink(src, dst)

Where src is the source and dst is the destination.

 

Leave a Reply

Your email address will not be published. Required fields are marked *