Skip to content

Commit

Permalink
Add bucketkeyprefix to s3 client
Browse files Browse the repository at this point in the history
  • Loading branch information
arpan-saini committed May 30, 2024
1 parent e2db193 commit 9a82449
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions classes/local/store/s3/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class client extends object_client_base {
protected $client;
protected $bucket;
private $signingmethod;
private $bucketkeyprefix;

public function __construct($config) {
global $CFG;
Expand Down Expand Up @@ -422,9 +423,9 @@ public function define_client_section($settings, $config) {
new \lang_string('settings:aws:base_url', 'tool_objectfs'),
new \lang_string('settings:aws:base_url_help', 'tool_objectfs'), ''));

// $settings->add(new \admin_setting_configtext('tool_objectfs/key_prefix',
// new \lang_string('settings:aws:key_prefix', 'tool_objectfs'),
// new \lang_string('settings:aws:key_prefix_help', 'tool_objectfs'), ''));
$settings->add(new \admin_setting_configtext('tool_objectfs/key_prefix',
new \lang_string('settings:aws:key_prefix', 'tool_objectfs'),
new \lang_string('settings:aws:key_prefix_help', 'tool_objectfs'), ''));

return $settings;
}
Expand Down

0 comments on commit 9a82449

Please sign in to comment.