App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.ext.cloudstorage.common.GCSFileStat Class Reference
Inheritance diagram for google.appengine.ext.cloudstorage.common.GCSFileStat:

Public Member Functions

def __init__
 
def __repr__
 
def __cmp__
 
def __hash__
 

Public Attributes

 filename
 
 is_dir
 
 st_size
 
 st_ctime
 
 etag
 
 content_type
 
 metadata
 

Detailed Description

Container for GCS file stat.

Constructor & Destructor Documentation

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: