def copytree(src, dst, symlinks=False):
    """Recursively copy a directory tree using copy2().

    The destination directory must not already exist.

    XXX Consider this example code rather than the ultimate tool.

    """
    names = os.listdir(src)
    if not os.path.exists(dst): os.makedirs(dst) # add check here

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

Reply via email to