/** * @see FileBackend::doDeleteInternal() */ function doDeleteInternal( array $params ) { $status = Status::newGood(); list( $srcCont, $srcRel ) = $this->resolveStoragePath( $params['src'] ); if ( $srcRel === null ) { $status->fatal( 'backend-fail-invalidpath', $params['src'] ); return $status; } // (a) Check the source container try { //TODO: Unnecessary --> remove (or better, check in resolveStoragePath?) $container = $this->storageClient->getContainer( $srcCont ); } catch ( Exception $e ) { $status->fatal( 'backend-fail-delete', $srcRel ); return $status; } // (b) Actually delete the object try { $this->storageClient->deleteBlob( $srcCont, $srcRel ); } catch ( Exception $e ) { $status->fatal( 'backend-fail-internal' ); } return $status; }