function is_link($path) { $result = $this->_get_lstat_cache_prop($path, 'type'); if ($result === false) { return false; } return $result === NET_SFTP_TYPE_SYMLINK; }
/** * {@inheritdoc} */ public function isLink($remoteTarget) { if ($this->isConnected()) { return $this->connection->is_link($remoteTarget); } return false; }