Skip to content

Commit 0a0b2ec

Browse files
icewind1991haphan
authored andcommitted
Add 'subdir' as alias for 'name' in StorageObject (#214)
When listing objects with `delimiter=/` the response for any sub directory will only contain `{"subdir": "folder/"}` Without this alias there is no way get a list of sub directories (without listing *all* objects)
1 parent 7f5087e commit 0a0b2ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ObjectStore/v1/Models/StorageObject.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class StorageObject extends OperatorResource implements Creatable, Deletable, Ha
4747
protected $aliases = [
4848
'bytes' => 'contentLength',
4949
'content_type' => 'contentType',
50+
'subdir' => 'name',
5051
];
5152

5253
/**

0 commit comments

Comments
 (0)