Note on CD-ing thru directories

Garance A Drosehn gad at eclipse.its.rpi.edu
Mon Mar 6 23:00:40 PST 1995


Sometime in the recent past, I believe someone asked why the standard
library that OmniWeb uses would do things like:
     cd lvlone
     cd lvltwo
     cd lvlthree
instead of
     cd lvlone/lvltwo/lvlthree

While working with my Mac, I remembered that some platforms don't
use "/" as the separator character.  Depending on which FTP server
you're running on a Mac, for instance, you might find you have to
do:
     cd lvlone:lvltwo:lvlthree
instead of using slashes.  Seems to me the same thing comes up on
some other platform too, such as ftp servers for VMS or VM/CMS.

By doing the cd's one level at a time, you avoid this issue.  You
don't have to care what the separator character is on the receiving
host.  I do remember having to resort to this strategy for *something*
I worked on a long time ago, but it's long enough ago that I don't
remember what it was...

For some future version of OmniWeb, perhaps the solution would be to
do the lvlone/lvltwo/lvlthree method, and if that fails then do the
multiple-cd method.

---
Garance Alistair Drosehn     =     gad at eclipse.its.rpi.edu
ITS Systems Programmer            (handles NeXT-type mail)
Rensselaer Polytechnic Institute;           Troy NY    USA


More information about the OmniWeb-l mailing list