Create a tempfile in a dir to see whether the symlink points to the same dir