The current directory of the WebKit app server is currently the location of
WebKit/. However, in the future, if people are successful embedding the app
server directly in AOLserver or Apache, then cur dir will no longer equal
Likewise, even if we move to the multi-application architecture I have been
thinking about, we cannot guarantee that that will be the cur dir either.
I proposed that both within Webware and for any code written for it, that
no cur dir assumption is made.
There is obviously a need to create filenames relative to various entities.
We already have a relativePath() method for HTTPRequest that does this by
joining the passed-in path with the server side path of the request. I
recommend a relativePath() method for each of the following classes:
AppServer & Application will be the same for now, but could be different in
the future if architectural changes occur.
We also have HTTPRequest.serverSideDir(). The same method would make sense
for any class having relativePath().
I like this idea a lot but will wait a couple days for comment.