Re: ftp recursively

2008-03-20 Thread Steven D'Aprano
On Wed, 19 Mar 2008 23:53:22 -0700, Jeff Schwab wrote: > The point of rsync is to keep a local directory tree in sync with a > remote one, by transferring only change-sets that are conceptually > similar to patches. If you're only transferring files once, there's no > particular benefit (AFAIK) t

Re: ftp recursively

2008-03-20 Thread Paul Rubin
Jeff Schwab <[EMAIL PROTECTED]> writes: > I thought os.walk was for locally mounted directories... How is it > relevant on remote filesystems? Yes, os.walk is for local directories. I thought you wanted to push a local tree to a remote host. For pulling, yes, you need to do something different;

Re: ftp recursively

2008-03-19 Thread Jeff Schwab
Paul Rubin wrote: > Jeff Schwab <[EMAIL PROTECTED]> writes: >> ftping it as a flat file, and untarring it on the other side. Of >> course, the motivation wasn't just to get the files from point A to >> point B using Unix (which I already know how to do), but to take >> advantage of an opportunity

Re: ftp recursively

2008-03-19 Thread Paul Rubin
Jeff Schwab <[EMAIL PROTECTED]> writes: > ftping it as a flat file, and untarring it on the other side. Of > course, the motivation wasn't just to get the files from point A to > point B using Unix (which I already know how to do), but to take > advantage of an opportunity to learn some Python; ne

Re: ftp recursively

2008-03-18 Thread Jeff Schwab
Gabriel Genellina wrote: > En Tue, 18 Mar 2008 18:25:28 -0300, Jeff Schwab <[EMAIL PROTECTED]> > escribió: > >> I need to move a directory tree (~9GB) from one machine to another on >> the same LAN. What's the best (briefest and most portable) way to do >> this in Python? > > See Tools/scripts/

Re: ftp recursively

2008-03-18 Thread Gabriel Genellina
En Tue, 18 Mar 2008 18:25:28 -0300, Jeff Schwab <[EMAIL PROTECTED]> escribió: > I need to move a directory tree (~9GB) from one machine to another on > the same LAN. What's the best (briefest and most portable) way to do > this in Python? See Tools/scripts/ftpmirror.py in your Python installat

Re: ftp recursively

2008-03-18 Thread Arnaud Delobelle
Jeff Schwab wrote: > I need to move a directory tree (~9GB) from one machine to another on > the same LAN. What's the best (briefest and most portable) way to do > this in Python? > > I see that urllib has some support for getting files by FTP, but that it > has some trouble distinguishing files

Re: ftp recursively

2008-03-18 Thread Paul Rubin
Jeff Schwab <[EMAIL PROTECTED]> writes: > I need to move a directory tree (~9GB) from one machine to another on > the same LAN. What's the best (briefest and most portable) way to do > this in Python? os.popen("rsync ...") -- http://mail.python.org/mailman/listinfo/python-list

ftp recursively

2008-03-18 Thread Jeff Schwab
I need to move a directory tree (~9GB) from one machine to another on the same LAN. What's the best (briefest and most portable) way to do this in Python? I see that urllib has some support for getting files by FTP, but that it has some trouble distinguishing files from directories. http