Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions classes/azure_blob_storage_file_system.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,21 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class azure_blob_storage_file_system extends file_system {
/**
* Output the content of the specified stored file.
*
* Note, this is different to get_content() as it uses the built-in php
* readfile function which is more efficient.
*
* @param stored_file $file The file to serve.
* @return void
*/
public function readfile(\stored_file $file) {
$path = $this->get_remote_path_from_storedfile($file);
if (readfile($path) === false) {
throw new \file_exception('storedfilecannotreadfile', $file->get_filename());
}
}
}


Loading