30 return [ [
'src' ], [
'ignoreMissingSource' ], [
'src' ] ];
34 $status = StatusValue::newGood();
37 $srcExists = $this->
fileExists( $this->params[
'src'], $predicates );
38 if ( $srcExists ===
false ) {
39 if ( $this->
getParam(
'ignoreMissingSource' ) ) {
40 $this->cancelled =
true;
48 $status->fatal(
'backend-fail-notexists', $this->params[
'src'] );
52 } elseif ( $srcExists === FileBackend::EXISTENCE_ERROR ) {
53 $status->fatal(
'backend-fail-stat', $this->params[
'src'] );
68 return $this->backend->deleteInternal( $this->
setFlags( $this->params ) );
72 return [ $this->params[
'src'] ];
Delete a file at the given storage path from the backend.
allowedParams()
Get the file operation parameters.
storagePathsChanged()
Get a list of storage paths written to for this operation.
doPrecheck(array &$predicates)
FileBackend helper class for representing operations.
fileExists( $source, array $predicates)
Check if a file will exist in storage when this operation is attempted.
getParam( $name)
Get the value of the parameter with the given name.
setFlags(array $params)
Adjust params to FileBackendStore internal file calls.