def stat_file(self, filename): self.response.write('File stat:\n') stat = gcs.stat(filename) self.response.write(repr(stat))
def gcs_content_type(dyn): gcs_file_name = '/%s/%s' % (default_bucket, dyn.filename) return gcs.stat(gcs_file_name).content_type