diff --git a/cterasdk/asynchronous/edge/files/browser.py b/cterasdk/asynchronous/edge/files/browser.py index 929b7137..f4953081 100644 --- a/cterasdk/asynchronous/edge/files/browser.py +++ b/cterasdk/asynchronous/edge/files/browser.py @@ -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): diff --git a/cterasdk/edge/files/browser.py b/cterasdk/edge/files/browser.py index 4fdb05ca..d8265522 100644 --- a/cterasdk/edge/files/browser.py +++ b/cterasdk/edge/files/browser.py @@ -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):