Skip to content

Commit 2f8e0cd

Browse files
added "files_list" method to square.Application
1 parent 0b9c9f4 commit 2f8e0cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

squarecloud/app.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,12 @@ async def commit(self, file: File,
283283
await self._listener.on_capture(endpoint=endpoint,
284284
response=response)
285285
return response
286+
287+
async def files_list(self, path: str, **kwargs):
288+
response: Response = await self.client.app_files_list(self.id, path)
289+
290+
if not kwargs.get('avoid_listener'):
291+
endpoint: Endpoint = Endpoint.files_list()
292+
await self._listener.on_capture(endpoint=endpoint,
293+
response=response)
294+
return response

0 commit comments

Comments
 (0)