35 return [ [
'src' ], [
'headers' ], [
'src' ] ];
42 $status = StatusValue::newGood();
46 if ( $srcExists ===
false ) {
47 $status->fatal(
'backend-fail-notexists', $this->params[
'src'] );
50 } elseif ( $srcExists === FileBackend::EXISTENCE_ERROR ) {
51 $status->fatal(
'backend-fail-stat', $this->params[
'src'] );
57 $srcSize =
function () use ( $opPredicates ) {
59 $size ??= $this->
resolveFileSize( $this->params[
'src'], $opPredicates );
62 $srcSha1 =
function () use ( $opPredicates ) {
67 $batchPredicates->
assumeFileExists( $this->params[
'src'], $srcSize, $srcSha1 );
74 return $this->backend->describeInternal( $this->
setFlags( $this->params ) );
78 return [ $this->params[
'src'] ];
83class_alias( DescribeFileOp::class,
'DescribeFileOp' );
Generic operation result class Has warning/error list, boolean status and arbitrary value.