2007/2/20, Phil Knirsch <[EMAIL PROTECTED]>:
Aron Stansvik wrote:
> Hello fellow urlgrabbers, is this intentional behavior?
>
> $ urlgrabber ftp://user:[EMAIL PROTECTED]/non_existing_file
> non_existing_file 0 B
> 00:00
> file written to non_existing_file
>
> It happily saves a 0 byte file when I try to fetch a file that isn't
> there. Shouldn't it fail on me? How can I make it file when the file
> is not present on the server?
>
> Best regards,
> Aron Stansvik
Funny enough, i stumbled accross the exact same problem yesterday. I'm
currently debugging the cause and i'm down to urllib.py which makes the
same mistake and ftlib.py which works correctly and fails with an error 550.
Yep. I'm guessing bullet point number 7 under "Restrictions" at the
bottom of http://docs.python.org/lib/module-urllib.html might be the
culprit, but I'm not sure.
For now I'm using ftplib directly in my script, which works but is not
as nice as urllib or urlgrabber when all you want is to download a
file.
Hopefully i'll have a patch ready tonight. I'll send it upstream to
python then, so it might take some more time until that finds it's way
down again.
Great! Thanks for the fast response.
Regards,
Aron
Read ya, Phil
--
Philipp Knirsch | Tel.: +49-711-96437-470
Development | Fax.: +49-711-96437-111
Red Hat GmbH | Email: Phil Knirsch <[EMAIL PROTECTED]>
Hauptstaetterstr. 58 | Web: http://www.redhat.de/
D-70178 Stuttgart
Motd: You're only jealous cos the little penguins are talking to me.
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel