Lines Matching refs:path

55     var $path;  variable in phpseclib\\Net\\SFTP\\Stream
150 * @param string $path
154 function _parse_path($path) argument
156 $orig = $path;
157 extract(parse_url($path) + array('port' => 22));
159 $path.= '?' . $query;
161 $path.= '?';
164 $path.= '#' . $fragment;
166 $path.= '#';
199 return $path;
247 return $path;
253 * @param string $path
260 function _stream_open($path, $mode, $options, &$opened_path) argument
262 $path = $this->_parse_path($path);
264 if ($path === false) {
267 $this->path = $path;
269 $this->size = $this->sftp->size($path);
277 $this->sftp->touch($path);
285 $this->sftp->truncate($path, 0);
318 $result = $this->sftp->get($this->path, false, $this->pos, $count);
351 $result = $this->sftp->put($this->path, $data, SFTP::SOURCE_STRING, $this->pos);
432 * @param string $path
438 function _stream_metadata($path, $option, $var) argument
440 $path = $this->_parse_path($path);
441 if ($path === false) {
452 return $this->sftp->touch($path, $time, $atime);
457 return $this->sftp->chown($path, $var);
459 return $this->sftp->chgrp($path, $var);
461 return $this->sftp->chmod($path, $var) !== false;
548 * @param string $path
553 function _dir_opendir($path, $options) argument
555 $path = $this->_parse_path($path);
556 if ($path === false) {
560 $this->entries = $this->sftp->nlist($path);
606 * @param string $path
612 function _mkdir($path, $mode, $options) argument
614 $path = $this->_parse_path($path);
615 if ($path === false) {
619 return $this->sftp->mkdir($path, $mode, $options & STREAM_MKDIR_RECURSIVE);
630 * @param string $path
635 function _rmdir($path, $options) argument
637 $path = $this->_parse_path($path);
638 if ($path === false) {
642 return $this->sftp->rmdir($path);
666 $results = $this->sftp->stat($this->path);
676 * @param string $path
680 function _unlink($path) argument
682 $path = $this->_parse_path($path);
683 if ($path === false) {
687 return $this->sftp->delete($path, false);
697 * @param string $path
702 function _url_stat($path, $flags) argument
704 $path = $this->_parse_path($path);
705 if ($path === false) {
709 … $results = $flags & STREAM_URL_STAT_LINK ? $this->sftp->lstat($path) : $this->sftp->stat($path);
726 if (!$this->sftp->truncate($this->path, $new_size)) {