if the path is not a symlink or on error.
Path.readLink
string readLink() constCreates a symbolic link at this path pointing to the target.
Parameters
target | The target path for the symlink. Creates a hard link at this path pointing to the target. |
Params: target = The target path for the hard link. Reads the target of a symbolic link without resolving it.
Platform semantics:
- POSIX: Uses
readlink(2)to return the raw link target bytes as a string. - Windows: Returns an empty string (not implemented yet).
Returns
The target path text stored in the symlink, or an empty string