Re: Ftp fetch file names with spaces
Joe Orton <[email protected]> Mon, 15 Aug 2005 20:58:18 +0100
| Newsgroups | gmane.comp.web.sitecopy |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 15, 2005 at 01:24:24PM -0400, Tobey Wheelock wrote: > On Mon, Aug 15, 2005 at 03:57:13PM +0100, Joe Orton wrote: > > Actaully I think this is a server bug > > Hmmm, I apologize, I thought this was about blanks in file names, but > it's not, it's about initial blanks. > > I tested the server and it does handle blanks in names OK. And so does > the unpatched sitecopy 0.16.0, EXCEPT if the file name has an initial > space. It turns out that the file in question is " chetamula > market.jpg", not "chetamula market.jpg". When it parsed the listing, > sitecopy must have dropped the initial space. Ah ha! Now we're getting somewhere. > > LIST -la public_html/jupiter/archives/images/ > < 150 Opening ASCII mode data connection for file list > ls: init, topdir: [public_html/jupiter/archives/images] > ls: [-rw-rw-rw- 1 ftp ftp 6063 Apr 2 2004 chetamula market-thumb.jpg] > ls: file (666, 6063): [chetamula market-thumb.jpg] This problem is that the 'ls' output is not really possible to parse reliably. Some servers support an "MLST" command which *does* have a well-defined response; sitecopy doesn't support that (yet). Your workaround of removing the file with the leading space is a good one :) Regards, joe _______________________________________________ sitecopy maillist - [email protected] http://dav.lyra.org/mailman/listinfo/sitecopy