22 return [ [
'src' ], [
'ignoreMissingSource' ], [
'src' ] ];
30 $status = StatusValue::newGood();
33 !$this->
getParam(
'ignoreMissingSource' ) &&
34 !$this->backend->isPathUsableInternal( $this->params[
'src'] )
36 $status->fatal(
'backend-fail-usable', $this->params[
'src'] );
43 if ( $srcExists ===
false ) {
44 if ( $this->
getParam(
'ignoreMissingSource' ) ) {
51 $status->fatal(
'backend-fail-notexists', $this->params[
'src'] );
55 } elseif ( $srcExists === FileBackend::EXISTENCE_ERROR ) {
56 $status->fatal(
'backend-fail-stat', $this->params[
'src'] );
70 return $this->backend->deleteInternal( $this->
setFlags( $this->params ) );
75 return [ $this->params[
'src'] ];
80class_alias( DeleteFileOp::class,
'DeleteFileOp' );
Generic operation result class Has warning/error list, boolean status and arbitrary value.