예제 #1
0
    def stat_file(self, filename):
        self.response.write('File stat:\n')

        stat = gcs.stat(filename)
        self.response.write(repr(stat))
예제 #2
0
def gcs_content_type(dyn):
    gcs_file_name = '/%s/%s' % (default_bucket, dyn.filename)

    return gcs.stat(gcs_file_name).content_type