35 return [ [
'src' ], [
'ignoreMissingSource' ], [
'src' ] ];
42 $status = StatusValue::newGood();
46 if ( $srcExists ===
false ) {
47 if ( $this->
getParam(
'ignoreMissingSource' ) ) {
54 $status->fatal(
'backend-fail-notexists', $this->params[
'src'] );
58 } elseif ( $srcExists === FileBackend::EXISTENCE_ERROR ) {
59 $status->fatal(
'backend-fail-stat', $this->params[
'src'] );
72 return $this->backend->deleteInternal( $this->
setFlags( $this->params ) );
76 return [ $this->params[
'src'] ];
81class_alias( DeleteFileOp::class,
'DeleteFileOp' );
Generic operation result class Has warning/error list, boolean status and arbitrary value.