Monday, April 30, 2012

Re: Import from local ftp server

On Mon, Apr 30, 2012 at 11:53 AM, orsomannaro <orsomannaro@gmail.com> wrote:
> On 30/04/2012 17:44, Thomas Weholt wrote:
>>
>> Might not be exactly what you need, but want to mention it anyway:
>
>
> Thank you very much, but I nedd a ftp client, not a server.
>
> I must build with Django something like this:
>
> http://www.net2ftp.com/
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
There is a python library called subprocess :
http://docs.python.org/library/subprocess.html#using-the-subprocess-module
You can just enter your ftp command as arguments
subprocess.call(["ftp://username:password@hostname/path/to/files/*"])

I haven't tried it before, but give it a try

--
Joel Goldstick

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment