Can you share details about your application’s use case and the runtime environment you are using? As shown in this documentation, App Engine generally does not encourage working with local files, as your application scales horizontally (generally other solutions are used to handle application data and files such as Cloud SQL, Cloud Storage, Firestore, etc). However, the available methods for local storage vary with each runtime.