Thank you for the quick response. However it is said that files in WAR are accessible to the application via the filesystem. Does that mean that I can create a directory at runtime in the /war directory? Or the statement means another thing? I wish to create a directory at runtime so I can create a "domain". For example, if I have www.webpage.com, I will create a domain new_domain. I will then have www.webpage.com/new_domain/ if I can create this directory at runtime. Thanks again!
On Oct 1, 11:00 am, andy stevko <[email protected]> wrote: > No - all local disk write access is not permitted. > > http://code.google.com/appengine/docs/java/runtime.html > The Filesystem > > A Java application cannot use any classes used to write to the filesystem, > such as java.io.FileWriter. An application can read its own files from the > filesystem using classes such as java.io.FileReader. An application can also > access its own files as "resources", such as with Class.getResource() or > ServletContext.getResource(). > > Only files that are considered "resource files" are accessible to the > application via the filesystem. By default, all files in the WAR are > "resource files." You can exclude files from this set using the > appengine-web.xml<http://code.google.com/appengine/docs/java/config/appconfig.html> > file. > > On Thu, Sep 30, 2010 at 6:52 PM, Norberto Ramirez II <[email protected] > > > > > > > > > wrote: > > Hi! > > > Is creating a folder at runtime allowed? I was trying to create a folder > > but I'm getting the following error. > > *java.security.AccessControlException: access denied > > (java.io.FilePermission \testfolder write)* > > > Thank you! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine-java%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-java?hl=en.
