Dan Harkless <[EMAIL PROTECTED]> writes:
> Sean Chuplis <[EMAIL PROTECTED]> writes:
>> Is it possible to download a file from an ftp site with a directory
>> name like '//directory'? I tried using %2F but when wget does the CWD
>> command it only uses the first '/'. Any suggestions?
> I find it hard to believe there's an FTP server / OS that allows null
> directory names. How would you cd to it if you were on the machine?
> `cd ""'? All the OSes I know of treat repeated directory separator
> characters as equivalent to a single one. The FTP standard may even
> explicitly state that directory and file names have to be at least one
> character long.
A leading // is (at least potentially) special, according to POSIX IIRC.
It can indicate a network file system, and //directory can be a completely
different directory than /directory. (This is from memory, as I've not
personally used a system with that behavior.) Although if that's what
Sean's running into, I'd be very curious on the details of that system.
--
Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>