Python 2.7 telah mencapai akhir dukungan
dan akan dihentikan penggunaannya
pada 31 Januari 2026. Setelah penghentian penggunaan, Anda tidak akan dapat men-deploy aplikasi Python 2.7, meskipun organisasi Anda sebelumnya menggunakan kebijakan organisasi untuk mengaktifkan kembali deployment runtime lama. Aplikasi Python 2.7 yang ada akan terus berjalan dan menerima traffic setelah
tanggal penghentiannya. Sebaiknya Anda bermigrasi ke versi Python terbaru yang didukung.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
GCSFileStat disediakan oleh library klien App Engine untuk Cloud Storage yang ada di /src/cloudstorage. Class ini digunakan untuk menyimpan data statistik file dari cloudstorage.stat().pa
Properti Instance
Instance GCSFileStat memiliki properti berikut:
filename
String. Nama file yang dijelaskan oleh statistik file ini, dalam format /bucket/object. Contoh, /my_bucket/lyrics/southamerica/list5.txt.
is_dir
True jika ini mewakili direktori. False jika ini adalah file sungguhan.
st_size
Kompatibel bujur. Ukuran file dalam byte.
etag
String. Representasi heksadesimal dari hash MD5 konten file.
st_ctime
Kompatibel dengan Float. Waktu pembuatan file posix.
content_type
String. Jenis konten file.
metadata
Dict. Berisi metadata yang ditentukan pengguna dari header
x-goog-meta-. Misalnya, {'x-goog-meta-foo': 'foo', 'x-goog-meta-bar': 'bar'}.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eGCSFileStat\u003c/code\u003e stores file stat data retrieved from \u003ccode\u003ecloudstorage.stat()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003efilename\u003c/code\u003e, \u003ccode\u003eis_dir\u003c/code\u003e, \u003ccode\u003est_size\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, \u003ccode\u003est_ctime\u003c/code\u003e, \u003ccode\u003econtent_type\u003c/code\u003e, and \u003ccode\u003emetadata\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003efilename\u003c/code\u003e represents the file's path in the format \u003ccode\u003e/bucket/object\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eis_dir\u003c/code\u003e indicates whether the entry is a directory or a file.\u003c/p\u003e\n"],["\u003cp\u003eWhen listed via \u003ccode\u003elistbucket\u003c/code\u003e, directory entries only contain \u003ccode\u003efilename\u003c/code\u003e, while file entries include all properties.\u003c/p\u003e\n"]]],[],null,["# The GCSFileStat Class\n\n`GCSFileStat` is provided by the App Engine client library for\nCloud Storage contained in `/src/cloudstorage`. This class is used to\nstore file stat data from [cloudstorage.stat()](/appengine/docs/legacy/standard/python/googlecloudstorageclient/functions#stat).\n\nInstance Properties\n-------------------\n\nA `GCSFileStat` instance has the following properties:\n\nfilename\n: String. The name of the file that this file stat is describing, in the\n format `/bucket/object`. For example, `/my_bucket/lyrics/southamerica/list5.txt`.\n\nis_dir\n: True if this represents a directory. False if this is a real file.\n\nst_size\n: Long compatible. The file size in bytes.\n\netag\n: String. The hex representation of the MD5 hash of the file's content.\n\nst_ctime\n: Float compatible. The posix file creation time.\n\ncontent_type\n: String. The file's content type.\n\nmetadata\n: Dict. Contains any user-specified metadata from the`x-goog-meta-`\n header. For example, {'x-goog-meta-foo': 'foo', 'x-goog-meta-bar': 'bar'}.\n| **Important:** When returned from a `listbucket` call, if the `is_dir` property is `True` then the object contains only the `filename`. If `is_dir` is `False`, then the object contains all of the properties."]]