ReviewOS

also looking at this

meemalabs/meema-client-php

Final Storage Endpoints

#61
Merged glennmichael123 wants to merge final-storage-endpoints into main
1 file +36 -0
src/Models/Storage.phpmodified+36-0
Changes to src/Models/Storage.php
@@ -148,6 +148,42 @@ class Storage
148148 return $this->client->request('POST', 'storage/copy', compact('path', 'newpath'));
149149 }
150150
151 /**
152 * Copy the file in storage.
153 *
154 * @param string $path
155 *
156 * @return array
157 */
158 public function read($path)
159 {
160 return $this->client->request('POST', 'storage/read', compact('path'));
161 }
162
163 /**
164 * Copy the file in storage.
165 *
166 * @param string $path
167 *
168 * @return array
169 */
170 public function readStream($path)
171 {
172 return $this->client->request('POST', 'storage/read-stream', compact('path'));
173 }
174
175 /**
176 * List contents of directory.
177 *
178 * @param string $path
179 *
180 * @return array
181 */
182 public function listContents($directory)
183 {
184 return $this->client->request('POST', 'storage/list-contents', compact('directory'));
185 }
186
151187 /**
152188 * Rename the file in storage.
153189 *