22 return [ [
'src' ], [
'headers' ], [
'src' ] ];
30 $status = StatusValue::newGood();
32 if ( !$this->backend->isPathUsableInternal( $this->params[
'src'] ) ) {
33 $status->fatal(
'backend-fail-usable', $this->params[
'src'] );
40 if ( $srcExists ===
false ) {
41 $status->fatal(
'backend-fail-notexists', $this->params[
'src'] );
44 } elseif ( $srcExists === FileBackend::EXISTENCE_ERROR ) {
45 $status->fatal(
'backend-fail-stat', $this->params[
'src'] );
51 $srcSize =
function () use ( $opPredicates ) {
53 $size ??= $this->
resolveFileSize( $this->params[
'src'], $opPredicates );
56 $srcSha1 =
function () use ( $opPredicates ) {
61 $batchPredicates->
assumeFileExists( $this->params[
'src'], $srcSize, $srcSha1 );
69 return $this->backend->describeInternal( $this->
setFlags( $this->params ) );
74 return [ $this->params[
'src'] ];
79class_alias( DescribeFileOp::class,
'DescribeFileOp' );
Generic operation result class Has warning/error list, boolean status and arbitrary value.