Lines Matching refs:gs
159 self.gs = GoogleStorageDataStore(data_store_location)
161 self.gs = LocalFileSystemDataStore(data_store_location)
208 self.gs.download_file(CREDENTIALS_GS_PATH, CREDENTIALS_FILE_PATH)
358 print '\n\n=======Uploading to %s=======\n\n' % self.gs.target_type()
364 self.gs.upload_dir_contents(
371 posixpath.join(self.gs.target_name(), dest_dir_name,
386 print '\n\n=======Not Uploading to %s=======\n\n' % self.gs.target_type()
458 gs = self.gs
459 if (gs.does_storage_object_exist(wpr_source) and
460 gs.does_storage_object_exist(page_set_source)):
461 gs.download_file(wpr_source,
464 gs.download_file(page_set_source,
468 raise Exception('%s and %s do not exist in %s!' % (gs.target_type(),
490 self.gs = gs_utils.GSUtils()
496 return self.gs.does_storage_object_exist(self._bucket, *args)
498 _, files = self.gs.list_bucket_contents(self._bucket, subdir=path)
500 self.gs.delete_file(self._bucket, posixpath.join(path, f))
502 self.gs.download_file(self._bucket, *args)
504 self.gs.upload_dir_contents(source_dir, self._bucket, **kwargs)