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'] );
51 $this->
fileSize( $this->params[
'src'], $predicates );
53 $this->
fileSha1( $this->params[
'src'], $predicates );
60 return $this->backend->describeInternal( $this->
setFlags( $this->params ) );
64 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 of a file in storage 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.
fileSize( $source, array $predicates)
Get the size a file in storage will have when this operation is attempted.