30 return [ [
'src' ], [
'headers' ], [
'src' ] ];
34 $status = StatusValue::newGood();
37 $srcExists = $this->
fileExists( $this->params[
'src'], $predicates );
38 if ( $srcExists ===
false ) {
39 $status->fatal(
'backend-fail-notexists', $this->params[
'src'] );
42 } elseif ( $srcExists === FileBackend::EXISTENCE_ERROR ) {
43 $status->fatal(
'backend-fail-stat', $this->params[
'src'] );
48 $predicates[
'exists'][$this->params[
'src']] = $srcExists;
49 $predicates[
'sha1'][$this->params[
'src']] =
50 $this->
fileSha1( $this->params[
'src'], $predicates );
57 return $this->backend->describeInternal( $this->
setFlags( $this->params ) );
61 return [ $this->params[
'src'] ];
Change metadata for a file at the given storage path in the backend.
storagePathsChanged()
Get a list of storage paths written to for this operation.
allowedParams()
Get the file operation parameters.
doPrecheck(array &$predicates)
FileBackend helper class for representing operations.
fileSha1( $source, array $predicates)
Get the SHA-1 hash a file in storage will have when this operation is attempted.
fileExists( $source, array $predicates)
Check if a file will exist in storage when this operation is attempted.
setFlags(array $params)
Adjust params to FileBackendStore internal file calls.