OK, please don't bother. Here is my wheel :-)

import os
import shutil

def CopyFlat(source, target):
    count = 0
    for root, dirs, files in os.walk(source):
        for file in files:
            count += 1
            name = root + '\\' + file
            print '%04d Copying' % count, name,
            if os.access(target + '\\' + file, os.F_OK):
                print 'Already exist and replaced!'
            else:
                print
            shutil.copy(name, target)

    print '%d files copied' % count

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to