[ee122] question about file names
Daniel Killebrew
dank at eecs.berkeley.edu
Wed Oct 24 05:13:54 PDT 2007
Nescio Nomen wrote:
> Once the client has retrieved an item from the server (via a 200 OK
> reply), it constructs a local file name
> into which to store the item. The new file name is the simple name of
> the URI, i.e., all the characters
> following the last '/'. This handles all but a few special cases. In
> these special cases, your client must create
> these files according the simple names listed below.
> / In this case, the simple name will be dir
> foo/ In this case, the simple name will be foo
>
> I don't understand that case. What's it supposed to catch?
>
> Is foo just a generic variable that stands for "any and all characters
> before the last slash?"
>
> So, for this request URI:
>
> /database/contents/
>
> foo would be:
>
> /database/contents
From the spec:
The new file name is the simple name of the URI, i.e., all the characters
following the last ‘/’.
therefore '/database/' is not part of "all the characters following the
last /"
so 'contents' would be the filename.
Please rid a bit more closely before asking questions.
Daniel
>
> Is that correct?
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122
>
More information about the ee122
mailing list