diff options
author | Robin Appelman <robin@icewind.nl> | 2025-03-20 15:59:25 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-03-31 14:30:40 +0200 |
commit | fcde776683ad5c844e82770e66ef814105d6a7c8 (patch) | |
tree | 6135c3d4cfd37a54dadc9aec4e2a68e212d259f5 /lib/private/Files/ObjectStore | |
parent | c3bc362f487cbea1458206e2b285210b38c0ea1e (diff) | |
download | nextcloud-server-fcde776683ad5c844e82770e66ef814105d6a7c8.tar.gz nextcloud-server-fcde776683ad5c844e82770e66ef814105d6a7c8.zip |
feat: add command to list objects
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/ObjectStore')
-rw-r--r-- | lib/private/Files/ObjectStore/S3.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/S3.php b/lib/private/Files/ObjectStore/S3.php index 63c93ca8f3e..e970fb6ac14 100644 --- a/lib/private/Files/ObjectStore/S3.php +++ b/lib/private/Files/ObjectStore/S3.php @@ -118,8 +118,8 @@ class S3 implements IObjectStore, IObjectStoreMultiPartUpload, IObjectStoreMetaD foreach ($result['Contents'] as $object) { yield [ 'urn' => basename($object['Key']), - 'meta' => [ - 'mtime' => strtotime($object['LastModified']), + 'metadata' => [ + 'mtime' => $object['LastModified'], 'etag' => trim($object['ETag'], '"'), 'size' => (int)($object['Size'] ?? $object['ContentLength']), ], |