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