Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Cloud Storage ist die empfohlene Lösung zum Lesen und Schreiben von Dateien in App Engine. Wenn Ihre Anwendung aber nur temporäre Dateien schreiben muss, können Sie mit den sprachspezifischen Methoden von Ruby Dateien in ein Verzeichnis mit dem Namen /tmp schreiben.
Alle Dateien in diesem Verzeichnis werden im RAM der Instanz gespeichert. Daher wird beim Schreiben in /tmp Systemarbeitsspeicher belegt. Darüber hinaus sind Dateien im Verzeichnis /tmp nur für die Anwendungsinstanz verfügbar, mit der die Dateien erstellt wurden. Wenn die Instanz gelöscht wird, werden auch die temporären Dateien gelöscht.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (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"]]