Update file.py

add function for creating symlink
Merge pull request #5485 from jamesalbert/patch-1

Update file.py