Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



The GCSFileStat Class

GCSFileStat is provided by the GCS client library contained in /src/cloudstorage . This class is used to store file stat data from cloudstorage.stat() .

Instance Properties

A GCSFileStat instance has the following properties:

filename
String. The name of the file that this file stat is describing, in the format /bucket/object . For example, /my_bucket/lyrics/southamerica/list5.txt .
is_dir
True if this represents a directory. False if this is a real file.
st_size
Long compatible. The file size in bytes.
etag
String. The hex digest of the MD5 hash of the file's content.
st_ctime
Float compatible. The posix file creation time.
content_type
String. The file's content type.
metadata
Dict. Contains any user-specified metadata from the x-goog-meta- header. For example, {'x-goog-meta-foo': 'foo', 'x-goog-meta-bar': 'bar'}.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.