function ensureSymlinkSync
Ensures that the link exists, and points to a valid file. If the directory structure does not exist, it is created.
Ensures that the link exists, and points to a valid file. If the directory structure does not exist, it is created.