Lines Matching refs:stat

717      * Disable the stat cache
726 * Enable the stat cache
735 * Clear the stat cache
940 // we could do a stat on the alleged $dir to see if it's a directory but that doesn't tell us
1056 $stat = $this->lstat($dir . '/' . $key);
1057 $is_directory = $stat && $stat['type'] === NET_SFTP_TYPE_DIRECTORY;
1249 * Any parameter returned by stat is a valid sort parameter for this function.
1307 if (!isset($value->stat) && isset($temp[$dir]->stat)) {
1308 $value->stat = $temp[$dir]->stat;
1381 public function stat($filename)
1394 if (is_array($result) && isset($result['.']) && isset($result['.']->stat)) {
1395 return $result['.']->stat;
1397 if (is_object($result) && isset($result->stat)) {
1398 return $result->stat;
1402 $stat = $this->stat_helper($filename, NET_SFTP_STAT);
1403 if ($stat === false) {
1407 if (isset($stat['type'])) {
1408 if ($stat['type'] == NET_SFTP_TYPE_DIRECTORY) {
1411 $this->update_stat_cache($filename, (object) ['stat' => $stat]);
1412 return $stat;
1416 $stat['type'] = $this->chdir($filename) ?
1421 if ($stat['type'] == NET_SFTP_TYPE_DIRECTORY) {
1424 $this->update_stat_cache($filename, (object) ['stat' => $stat]);
1426 return $stat;
1471 $stat = $this->stat_helper($filename, NET_SFTP_STAT);
1473 if ($lstat != $stat) {
1476 return $stat;
2050 // and then tried to do a stat on the deleted file. the above, in contrast, does
2132 $stat = $this->stat($remote_file);
2133 $offset = $stat !== false && $stat['size'] ? $stat['size'] : 0;
2196 $stat = fstat($fp);
2197 $size = !empty($stat) ? $stat['size'] : 0;
2274 $stat = stat($data);
2276 pack('N3', NET_SFTP_ATTR_ACCESSTIME, $stat['atime'], $stat['mtime']) :
2277 Strings::packSSH2('NQ2', NET_SFTP_ATTR_ACCESSTIME | NET_SFTP_ATTR_MODIFYTIME, $stat['atime'], $stat['mtime']);
2393 $stat = fstat($fp);
2394 $res_offset = $stat['size'];
2496 $stat = $this->stat($remote_file);
2497 touch($local_file, $stat['mtime'], $stat['atime']);
2657 return $this->stat($path) !== false;
2892 * Return a stat properity
2902 return $this->get_xstat_cache_prop($path, $prop, 'stat');
2920 * Return a stat or lstat properity
3005 // don't move the stat cache entry over since this operation could very well change the
3190 // values come from http://lxr.free-electrons.com/source/include/uapi/linux/stat.h#L12
3191 // see, also, http://linux.die.net/man/2/stat