Lines Matching defs:mode
1230 case 'mode':
1670 * @param int $mode
1676 public function chmod($mode, $filename, $recursive = false)
1678 if (is_string($mode) && is_int($filename)) {
1679 $temp = $mode;
1680 $mode = $filename;
1684 $attr = pack('N2', NET_SFTP_ATTR_PERMISSIONS, $mode & 07777);
1703 return $attrs['mode'];
1955 * @param int $mode
1959 public function mkdir($dir, $mode = -1, $recursive = false)
1976 $result = $this->mkdir_helper($temp, $mode);
1981 return $this->mkdir_helper($dir, $mode);
1988 * @param int $mode
1991 private function mkdir_helper($dir, $mode)
2008 if ($mode !== -1) {
2009 $this->chmod($mode, $dir);
2064 * Setting $mode to self::SOURCE_LOCAL_FILE will change the above behavior. With self::SOURCE_LOCAL_FILE, $remote_file will
2068 * Setting $mode to self::SOURCE_CALLBACK will use $data as callback function, which gets only one parameter -- number
2073 * Currently, only binary mode is supported. As such, if the line endings need to be adjusted, you will need to take
2076 * $mode can take an additional two parameters - self::RESUME and self::RESUME_START. These are bitwise AND'd with
2077 * $mode. So if you want to resume upload of a 300mb file on the local file system you'd set $mode to the following:
2084 * If $mode & (self::RESUME | self::RESUME_START) then self::RESUME_START will be assumed.
2091 * Setting $local_start to > 0 or $mode | self::RESUME_START doesn't do anything unless $mode | self::SOURCE_LOCAL_FILE.
2093 * {@internal ASCII mode for SFTPv4/5/6 can be supported by adding a new function - \phpseclib3\Net\SFTP::setMode().}
2097 * @param int $mode
2106 public function put($remote_file, $data, $mode = self::SOURCE_STRING, $start = -1, $local_start = -1, $progressCallback = null)
2125 //$flags|= ($mode & self::RESUME) ? NET_SFTP_OPEN_APPEND : NET_SFTP_OPEN_TRUNCATE;
2130 } elseif ($mode & (self::RESUME | self::RESUME_START)) {
2167 case $mode & self::SOURCE_CALLBACK:
2175 $mode = $mode & ~self::SOURCE_LOCAL_FILE;
2185 case $mode & self::SOURCE_LOCAL_FILE:
2202 } elseif ($mode & self::RESUME) {
2237 if ($mode & self::SOURCE_LOCAL_FILE) {
2261 if ($mode & self::SOURCE_LOCAL_FILE) {
2268 if ($mode & SFTP::SOURCE_LOCAL_FILE) {
2802 return $this->get_stat_cache_prop($path, 'mode');
3095 list($attr['mode']) = Strings::unpackSSH2('N', $response);
3096 $fileType = $this->parseMode($attr['mode']);
3185 * @param int $mode
3188 private function parseMode($mode)
3192 switch ($mode & 0170000) {// ie. 1111 0000 0000 0000