30 return [ [
'src' ], [
'ignoreMissingSource' ], [
'src' ] ];
37 $status = StatusValue::newGood();
41 if ( $srcExists ===
false ) {
42 if ( $this->
getParam(
'ignoreMissingSource' ) ) {
49 $status->fatal(
'backend-fail-notexists', $this->params[
'src'] );
53 } elseif ( $srcExists === FileBackend::EXISTENCE_ERROR ) {
54 $status->fatal(
'backend-fail-stat', $this->params[
'src'] );
67 return $this->backend->deleteInternal( $this->
setFlags( $this->params ) );
71 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(FileStatePredicates $opPredicates, FileStatePredicates $batchPredicates)
Do a dry-run precondition check of the operation in the context of op batch.
FileBackend helper class for representing operations.
resolveFileExistence( $source, FileStatePredicates $opPredicates)
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.
Helper class for tracking counterfactual file states when pre-checking file operation batches.
assumeFileDoesNotExist(string $path)
Predicate that no file exists at the path.