|
def | __init__ |
|
def | __repr__ |
|
def | __cmp__ |
|
def | __hash__ |
|
|
| filename |
|
| is_dir |
|
| st_size |
|
| st_ctime |
|
| etag |
|
| content_type |
|
| metadata |
|
Container for GCS file stat.
def google.appengine.ext.cloudstorage.common.GCSFileStat.__init__ |
( |
|
self, |
|
|
|
filename, |
|
|
|
st_size, |
|
|
|
etag, |
|
|
|
st_ctime, |
|
|
|
content_type = None , |
|
|
|
metadata = None , |
|
|
|
is_dir = False |
|
) |
| |
Initialize.
For files, the non optional arguments are always set.
For directories, only filename and is_dir is set.
Args:
filename: a Google Cloud Storage filename of form '/bucket/filename'.
st_size: file size in bytes. long compatible.
etag: hex digest of the md5 hash of the file's content. str.
st_ctime: posix file creation time. float compatible.
content_type: content type. str.
metadata: a str->str dict of user specified options when creating
the file. Possible keys are x-goog-meta-, content-disposition,
content-encoding, and cache-control.
is_dir: True if this represents a directory. False if this is a real file.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/ext/cloudstorage/common.py