Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cterasdk/asynchronous/edge/files/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ async def move(self, path, destination=None, overwrite=False):
raise ValueError('Move destination was not specified.')
return await io.move(self._edge, self.normalize(path), self.normalize(destination), overwrite)

async def delete(self, path):
async def delete(self, *paths):
"""
Delete a file

:param str path: File path
"""
return await io.remove(self._edge, self.normalize(path))
return await io.remove(self._edge, *[self.normalize(path) for path in paths])

@staticmethod
def normalize(path):
Expand Down
4 changes: 2 additions & 2 deletions cterasdk/edge/files/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ def move(self, path, destination=None, overwrite=False):
raise ValueError('Move destination was not specified.')
return io.move(self._edge, self.normalize(path), self.normalize(destination), overwrite)

def delete(self, path):
def delete(self, *paths):
"""
Delete a file

:param str path: File path
"""
return io.remove(self._edge, self.normalize(path))
return io.remove(self._edge, *[self.normalize(path) for path in paths])

@staticmethod
def normalize(path):
Expand Down