Skip to content Skip to sidebar Skip to footer

Makedirs Error: Can Gae Python Create New Directories (folders) Or Not?

I have seen a number of questions relating to writing files & creating new directories using Python and GAE, but a number of them conclude (not only on SO) by saying that Pytho

Solution 1:

Appengine does not support any write operations to the filesystem (amongst other restrictions). The BlobStore does have a file like api, but you cannot rewrite/append to existing blob store entities. The dev server also presents these restrictions to emulate production environment.

You should probably have a read of the some of the docs about appengine. The overview doc https://developers.google.com/appengine/docs/python/overview explicitly states you can't write.

Solution 2:

AppEngine can now write to a local "ephemeral" disk storage when using Managed-VM which is not supported when using the sandbox method as specified on this documentation:

https://cloud.google.com/appengine/docs/managed-vms/tutorial/step3

Post a Comment for "Makedirs Error: Can Gae Python Create New Directories (folders) Or Not?"