Hi,
Static files are stored separately from code files. This is
mentioned in the docs:
http://code.google.com/appengine/docs/python/config/appconfig.html#Static_File_Handlers
If you're trying to check files in a static directory, why not build
an index of items at deploy time?
Robert
On Wed, Jun 8, 2011 at 02:40, Devraj Mukherjee <[email protected]> wrote:
> Hi all,
>
> After hours of debugging we've found that we can't run a
> os.path.exists on the contents of a directory if its configured as a
> static_dir for a URL in app.yaml
>
> Our scenario: We want to check if an image exists in our image
> repository or else send a default image name, as JSON output in one of
> our REST services.
>
> Can someone confirm that this is true / part of the sandbox?
>
> Is there a workaround that you can point me to?
>
> Thanks for your time.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.