Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Meskipun Cloud Storage adalah solusi yang direkomendasikan untuk membaca dan menulis file di App Engine, Anda dapat menggunakan metode khusus bahasa untuk menulis file ke direktori bernama /tmp, jika aplikasi Anda hanya perlu menulis file sementara.
Semua file dalam direktori ini disimpan di RAM instance, oleh karena itu penulisan
ke /tmp akan menggunakan memori sistem. Selain itu, file dalam direktori /tmp
hanya tersedia untuk instance aplikasi yang membuat file tersebut. Saat instance dihapus, file sementara akan dihapus.
[[["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-08-19 UTC."],[[["\u003cp\u003eCloud Storage is recommended for reading and writing files in App Engine.\u003c/p\u003e\n"],["\u003cp\u003eTemporary files can be written to the \u003ccode\u003e/tmp\u003c/code\u003e directory using language-specific methods.\u003c/p\u003e\n"],["\u003cp\u003eFiles in \u003ccode\u003e/tmp\u003c/code\u003e are stored in the instance's RAM and consume system memory.\u003c/p\u003e\n"],["\u003cp\u003eTemporary files in \u003ccode\u003e/tmp\u003c/code\u003e are only accessible to the instance that created them and are deleted when the instance is deleted.\u003c/p\u003e\n"]]],[],null,["# Reading and writing temporary files\n\nGo Java Node.js PHP Python Ruby\n\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\nWhile [Cloud Storage](/appengine/docs/standard/using-cloud-storage)\nis the recommended solution for reading and writing files in App Engine,\nif your app only needs to write temporary files, you can use language-specific\nmethods to write files to a directory named `/tmp`.\n\nAll files in this directory are stored in the instance's RAM, therefore writing\nto `/tmp` takes up system memory. In addition, files in the `/tmp` directory are\nonly available to the app instance that created the files. When the instance is\ndeleted, the temporary files are deleted.\n\n\u003cbr /\u003e"]]