[ee122] Directories with extensions
Christopher Cowart
ccowart at berkeley.edu
Wed Oct 31 00:46:16 PDT 2007
On Wed, Oct 31, 2007 at 12:20:27AM -0700, Carrell Killebrew wrote:
> Yes, list the directory's contents if the URL passed to you does
> refer to a directory, regardless of what the name 'looks like'.
>
> Don't bother looking at the file's contents, just blindly return
> text/plain since the extension is .txt
Here's another case:
Assume /index.html is a directory.
When the client asks for /, do we:
a) ls index.html
b) recurse, so look for /index.html/index.html, and ls /index.html if
index.html/index.html doesn't exist
c) not worry about it because it's a really obnoxious corner case that
doubles the length of the logic and you're a nice guy who isn't
going to write any such test cases
--
Chris Cowart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 824 bytes
Desc: not available
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/ee122/attachments/20071031/9b144140/attachment.bin
More information about the ee122
mailing list