22 return [ [
'src' ], [
'headers' ], [
'src' ] ];
30 $status = StatusValue::newGood();
34 if ( $srcExists ===
false ) {
35 $status->fatal(
'backend-fail-notexists', $this->params[
'src'] );
38 } elseif ( $srcExists === FileBackend::EXISTENCE_ERROR ) {
39 $status->fatal(
'backend-fail-stat', $this->params[
'src'] );
45 $srcSize =
function () use ( $opPredicates ) {
47 $size ??= $this->
resolveFileSize( $this->params[
'src'], $opPredicates );
50 $srcSha1 =
function () use ( $opPredicates ) {
55 $batchPredicates->
assumeFileExists( $this->params[
'src'], $srcSize, $srcSha1 );
63 return $this->backend->describeInternal( $this->
setFlags( $this->params ) );
68 return [ $this->params[
'src'] ];
73class_alias( DescribeFileOp::class,
'DescribeFileOp' );
Generic operation result class Has warning/error list, boolean status and arbitrary value.