Re: synching with os.walk()

2006-11-27 Thread [EMAIL PROTECTED]
On Nov 24, 7:57 am, "Andre Meyer" <[EMAIL PROTECTED]> wrote: > > os.walk() is a nice generator for performing actions on all files in a > directory and subdirectories. However, how can one use os.walk() for walking > through two hierarchies at once? I want to synchronise two directories (just > b

Re: synching with os.walk()

2006-11-24 Thread BartlebyScrivener
Antoine De Groote wrote: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/191017 > might be what you are looking for, or at least a starting point... > There's an updated version of this script at pages 403-04 of the Python Cookbook 2nd Edition. rd -- http://mail.python.org/mailman/l

Re: synching with os.walk()

2006-11-24 Thread Antoine De Groote
Andre Meyer wrote: > Hi all > > os.walk() is a nice generator for performing actions on all files in a > directory and subdirectories. However, how can one use os.walk() for > walking through two hierarchies at once? I want to synchronise two > directories (just backup for now), but cannot see

Re: synching with os.walk()

2006-11-24 Thread Andre Meyer
Cool, this seems to work. thanks! On 24 Nov 2006 08:12:08 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > os.walk() is a nice generator for performing actions on all files in a > directory and subdirectories. However, how can one use os.walk() for walking > through two hierarchies at on

Re: synching with os.walk()

2006-11-24 Thread Paddy
Paddy wrote: > P.S. If you are on a Unix type system you can use tar to do the copying > as you can easily compress the data if it needs to go over a sow link, Sow links, transfers your data and then may form a tasty sandwich when cooked. (The original should, of course, read ...slow...) - Pad.

Re: synching with os.walk()

2006-11-24 Thread Andre Meyer
What I forgot to mention is that I want this to run unmodified from both Windows and Linux (and Mac). Otherwise, there are enough options to choose from, besides developing it myself, I guess. On 24 Nov 2006 08:37:13 -0800, Paddy <[EMAIL PROTECTED]> wrote: Paddy wrote: > Andre Meyer wrote: >

Re: synching with os.walk()

2006-11-24 Thread Andre Meyer
That sounds like a good approach. On 24 Nov 2006 08:27:09 -0800, Paddy <[EMAIL PROTECTED]> wrote: Andre Meyer wrote: > Hi all > > os.walk() is a nice generator for performing actions on all files in a > directory and subdirectories. However, how can one use os.walk() for walking > through two

Re: synching with os.walk()

2006-11-24 Thread Thomas Ploch
>> os.walk() is a nice generator for performing actions on all files in a >> directory and subdirectories. However, how can one use os.walk() for walking >> through two hierarchies at once? I want to synchronise two directories (just >> backup for now), but cannot see how I can traverse a second o

Re: synching with os.walk()

2006-11-24 Thread Paddy
Paddy wrote: > Andre Meyer wrote: > > > Hi all > > > > os.walk() is a nice generator for performing actions on all files in a > > directory and subdirectories. However, how can one use os.walk() for walking > > through two hierarchies at once? I want to synchronise two directories (just > > backu

Re: synching with os.walk()

2006-11-24 Thread Paddy
Andre Meyer wrote: > Hi all > > os.walk() is a nice generator for performing actions on all files in a > directory and subdirectories. However, how can one use os.walk() for walking > through two hierarchies at once? I want to synchronise two directories (just > backup for now), but cannot see ho

Re: synching with os.walk()

2006-11-24 Thread 120psi
> os.walk() is a nice generator for performing actions on all files in a > directory and subdirectories. However, how can one use os.walk() for walking > through two hierarchies at once? I want to synchronise two directories (just > backup for now), but cannot see how I can traverse a second one. I

synching with os.walk()

2006-11-24 Thread Andre Meyer
Hi all os.walk() is a nice generator for performing actions on all files in a directory and subdirectories. However, how can one use os.walk() for walking through two hierarchies at once? I want to synchronise two directories (just backup for now), but cannot see how I can traverse a second one.