Python 2.7 has reached end of support
and will be deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Python
2.7 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you migrate to the latest supported version of Python.
Stay organized with collections
Save and categorize content based on your preferences.
GCSFileStat is provided by the App Engine client library for
Cloud Storage 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 representation 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 thex-goog-meta-
header. For example, {'x-goog-meta-foo': 'foo', 'x-goog-meta-bar': 'bar'}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["`GCSFileStat` stores file stat data retrieved from `cloudstorage.stat()`."],["It includes properties like `filename`, `is_dir`, `st_size`, `etag`, `st_ctime`, `content_type`, and `metadata`."],["`filename` represents the file's path in the format `/bucket/object`."],["`is_dir` indicates whether the entry is a directory or a file."],["When listed via `listbucket`, directory entries only contain `filename`, while file entries include all properties."]]],[]]