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
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
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
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
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.
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:
>
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
>> 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
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
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
> 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
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.
12 matches
Mail list logo