Skip to content

Commit 6fe391e

Browse files
authored
support deleting multiple files in one call on the edge filer (#296)
1 parent b2fedda commit 6fe391e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cterasdk/asynchronous/edge/files/browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ async def move(self, path, destination=None, overwrite=False):
129129
raise ValueError('Move destination was not specified.')
130130
return await io.move(self._edge, self.normalize(path), self.normalize(destination), overwrite)
131131

132-
async def delete(self, path):
132+
async def delete(self, *paths):
133133
"""
134134
Delete a file
135135
136136
:param str path: File path
137137
"""
138-
return await io.remove(self._edge, self.normalize(path))
138+
return await io.remove(self._edge, *[self.normalize(path) for path in paths])
139139

140140
@staticmethod
141141
def normalize(path):

cterasdk/edge/files/browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ def move(self, path, destination=None, overwrite=False):
129129
raise ValueError('Move destination was not specified.')
130130
return io.move(self._edge, self.normalize(path), self.normalize(destination), overwrite)
131131

132-
def delete(self, path):
132+
def delete(self, *paths):
133133
"""
134134
Delete a file
135135
136136
:param str path: File path
137137
"""
138-
return io.remove(self._edge, self.normalize(path))
138+
return io.remove(self._edge, *[self.normalize(path) for path in paths])
139139

140140
@staticmethod
141141
def normalize(path):

0 commit comments

Comments
 (0)