Sorry but a symlink is just a symlink, it points to another name. It does not contain a flag saying whether it points to a file or a directory, so you can't know.
Sorry but a symlink is just a symlink, it points to another name. It does not contain a flag saying whether it points to a file or a directory, so you can't know.