Subject:
|
Re: Stick in the mud...
|
Newsgroups:
|
lugnet.admin.general
|
Date:
|
Tue, 13 Jun 2000 19:58:40 GMT
|
Viewed:
|
1678 times
|
| |
| |
In lugnet.admin.general, Kevin Loch writes:
> In lugnet.admin.general, Matthew Miller writes:
> > Kevin Loch <kloch@opnsys.com> wrote:
> > > What filesystem allows file bar and directory bar in the foo directory?
> >
> > Yeah, I've been wondering this too. It's pretty longstanding practice in
> > unix that "ls /usr" and "ls /usr/" are going to get me exactly the same
> > thing.
> >
> > For that matter, "stat /usr" and "stat /usr/" both get me the same thing....
> >
> > And I'm relatively certain that the situation is the same in DOS/Windows...
>
> More specifically try to create a file and a directory with the same parent
> and same name. It doesn't work on any operating system I know of (ok I
> haven't tried it on a Mac).
On servers where URLs map directly to filespecs, you can't have both /foo/bar
and /foo/bar/ unless the underlying filesystem differentiates between the two.
I'm not aware of any filesystems which simultaneously allow both /foo/bar and
/foo/bar/ since in most filesystems directories are simply a special form of a
file.
In the general case, however, URLs != filenames. You could easily have a
URL-to-file mapping layer which converts /foo/bar to /foo/bar.bork and
/foo/bar/ to /foo/bar/index.bork, in which case your two URLs /foo/bar and
/foo/bar/ could both peacefully coexist in the filesystem, even with a one-to-
one mapping. Since this is likely to confuse (or confound :-) users, it's
probably a good idea to help a user get to /foo/bar/ if they accidentally
arrive there via /foo/bar and /foo/bar doesn't exist while /foo/bar/ does
exist.
--Todd
|
|
Message has 1 Reply: | | Re: Stick in the mud...
|
| (...) In this example, if /foo/bar doesn't exist the user should get what /foo/bar/ points to, one way or another. Not a page to help them get to it. Either redirect (current practice) or rewrite (possible option) /foo/bar to /foo/bar/. If you (...) (24 years ago, 13-Jun-00, to lugnet.admin.general)
|
Message is in Reply To:
| | Re: Stick in the mud...
|
| (...) More specifically try to create a file and a directory with the same parent and same name. It doesn't work on any operating system I know of (ok I haven't tried it on a Mac). KL (24 years ago, 13-Jun-00, to lugnet.admin.general)
|
85 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|