cloud: gcp: implement remove()

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-01-16 01:09:43 +02:00
parent 94fa641290
commit 5332f8a2bc
+4 -1
View File
@@ -124,4 +124,7 @@ class DataCloudGCP(DataCloudBase):
return (local_exists, remote_exists, diff)
def remove(self, item):
raise Exception('NOT IMPLEMENTED YET')
bucket = self._get_bucket_gc(self.storage_bucket)
blob_name = self.cache_file_key(path)
blob = bucket.blob(blob_name)
blob.delete()