Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: tools/skp/webpages_playback.py

Issue 1662673003: Fix delete_path in webpages_playback.py (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skp/webpages_playback.py
diff --git a/tools/skp/webpages_playback.py b/tools/skp/webpages_playback.py
index 257fcf4e94878d5ebf0bb4a493fe2b4b546736e8..1284a540e80c295b200e238b15d0f40ce46e29d3 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):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698