[svlug] Caps on my Cisco Networking CD

Ray Olszewski ray at comarre.com
Fri Nov 6 15:50:47 PST 1998


Scott --

I'm having a bit of trouble understanding your request. A program to convert
upper-case filenames to their corresponding lower-case names is easy to
write in perl, c, or even as a shell script. (In fact, as I was writing
this, I saw that someone else showed you the guts of how to do this, though
some further code is needed to read and write the directories.) But you say
the files are on a CD. That's a read-only medium, so there's no simple way
to change the file names permanently, since the directories themselves
cannot be rewritten.

Of course, if you have enough hard disk space available you could copy the
contents of the CD-ROM to hard disk. Then a directory converter app could do
the job. Or, even simpler, mount the CD somewhere that Netscape won't
stumble on it directly, then put, in the path where the html files expect to
find the CD, directory full of UC or LC symlinks to the actual files.

I'd include an illustration in perl, but there's too much guesswork involved
at this point. On the CD, are all the files in one directory, or are there
subdirectories? Do the filenames (and directory names?) need to be changed
from UC to LC, or the other way around (from your message, it's clear that
there is a mismatch between the filename as it appears in the URL and as it
appears on the CD, but I can't quite tell which one is UC, which LC)?

Another possibility is to patch Netscape (or some other browser) that would
convert the URLs on the fly from upper to lower case ... or maybe the other
way (it's hard to tell from your description which representation of the
filename is UC, which LC). This is assuming you use the "open file" choice
to get to the files. If you do it through a Web server such as apache, it
might be possible to patch apache so that if it can't find a URL, it then
looked for its all-LC or all-UC equivalent. Either of these, unfortunately,
is a considerably harder task than converting the directories themselves.

At 07:49 AM 11/6/98 -0800, Scott wrote:
[deleted]
>all of the filenames capitals.  Now whenever i click on the a link it
>wont find it because the directory and the file names are all caps
>instead of lower case.  There are like thousands of files on this cd.
>Literally i mean more than 5,000 files on this cd.  
[deleted]

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
762 Garland Drive
Palo Alto, CA  94303-3603
650.321.3561 voice                               ray at comarre.com
650.322.1209 fax                 http://www.comarre.com/ray.html
----------------------------------------------------------------


--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe



More information about the svlug mailing list