phpseclib\Net\SFTP::is_link PHP Method

    function is_link($path)
    {
        $result = $this->_get_lstat_cache_prop($path, 'type');
        if ($result === false) {
            return false;
        }
        return $result === NET_SFTP_TYPE_SYMLINK;
    }

Usage Example

コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function isLink($remoteTarget)
 {
     if ($this->isConnected()) {
         return $this->connection->is_link($remoteTarget);
     }
     return false;
 }