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