|
@@ 1015-1028 (lines=14) @@
|
| 1012 |
|
$this->cheapCache->set( $path, 'stat', $val ); |
| 1013 |
|
} |
| 1014 |
|
|
| 1015 |
|
protected function doGetFileXAttributes( array $params ) { |
| 1016 |
|
$stat = $this->getFileStat( $params ); |
| 1017 |
|
if ( $stat ) { |
| 1018 |
|
if ( !isset( $stat['xattr'] ) ) { |
| 1019 |
|
// Stat entries filled by file listings don't include metadata/headers |
| 1020 |
|
$this->clearCache( [ $params['src'] ] ); |
| 1021 |
|
$stat = $this->getFileStat( $params ); |
| 1022 |
|
} |
| 1023 |
|
|
| 1024 |
|
return $stat['xattr']; |
| 1025 |
|
} else { |
| 1026 |
|
return false; |
| 1027 |
|
} |
| 1028 |
|
} |
| 1029 |
|
|
| 1030 |
|
protected function doGetFileSha1base36( array $params ) { |
| 1031 |
|
$stat = $this->getFileStat( $params ); |
|
@@ 1030-1043 (lines=14) @@
|
| 1027 |
|
} |
| 1028 |
|
} |
| 1029 |
|
|
| 1030 |
|
protected function doGetFileSha1base36( array $params ) { |
| 1031 |
|
$stat = $this->getFileStat( $params ); |
| 1032 |
|
if ( $stat ) { |
| 1033 |
|
if ( !isset( $stat['sha1'] ) ) { |
| 1034 |
|
// Stat entries filled by file listings don't include SHA1 |
| 1035 |
|
$this->clearCache( [ $params['src'] ] ); |
| 1036 |
|
$stat = $this->getFileStat( $params ); |
| 1037 |
|
} |
| 1038 |
|
|
| 1039 |
|
return $stat['sha1']; |
| 1040 |
|
} else { |
| 1041 |
|
return false; |
| 1042 |
|
} |
| 1043 |
|
} |
| 1044 |
|
|
| 1045 |
|
protected function doStreamFile( array $params ) { |
| 1046 |
|
$status = Status::newGood(); |