aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar rmistry <rmistry@google.com>2016-02-03 05:58:31 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-03 05:58:31 -0800
commitf5e83951ad757d122cebe8fd5864124be285c40c (patch)
tree5e24680cd8e61cb49565993444c03c1d177a00dc
parent2404f03413bc9b4fa3f556c64642e57507092d8d (diff)
Fix delete_path in webpages_playback.py
BUG=skia:3751 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1662673003 # Trybots do not exercise this code. NOTRY=true Review URL: https://codereview.chromium.org/1662673003
-rw-r--r--tools/skp/webpages_playback.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/skp/webpages_playback.py b/tools/skp/webpages_playback.py
index 257fcf4e94..1284a540e8 100644
--- a/tools/skp/webpages_playback.py
+++ b/tools/skp/webpages_playback.py
@@ -495,7 +495,9 @@ class GoogleStorageDataStore(DataStore):
def does_storage_object_exist(self, *args):
return self.gs.does_storage_object_exist(self._bucket, *args)
def delete_path(self, path):
- return self.gs.delete_file(self._bucket, path)
+ _, files = self.gs.list_bucket_contents(self._bucket, subdir=path)
+ for f in files:
+ self.gs.delete_file(self._bucket, posixpath.join(path, f))
def download_file(self, *args):
self.gs.download_file(self._bucket, *args)
def upload_dir_contents(self, source_dir, **kwargs):