GCSFileStat 類別

GCSFileStat 由包含在 /src/cloudstorage 中,Cloud Storage 適用的 App Engine 用戶端程式庫提供。此類別用於儲存 cloudstorage.stat() 的檔案統計資料。

執行個體屬性

GCSFileStat 執行個體具有下列屬性:

filename
字串。這個檔案統計資料所描述的檔案名稱,格式為 /bucket/object。例如:/my_bucket/lyrics/southamerica/list5.txt
is_dir
如果這代表目錄,則為 True。如果是實際檔案,則為 False。
st_size
長期相容。檔案大小 (以位元組為單位)。
etag
字串。檔案內容的 MD5 雜湊十六進位表示法。
st_ctime
可浮動。The posix file creation time.
content_type
字串。檔案的內容類型。
中繼資料
字典,包含 x-goog-meta- 標頭中任何由使用者指定的中繼資料。例如:{'x-goog-meta-foo': 'foo', 'x-goog-meta-bar': 'bar'}。