def METHOD_NAME(src, dest, opts=None):
    if os.path.exists(dest):
        logging.debug('Removing existing directory: %s' % dest)
        shutil.rmtree(dest)
    logging.info('Syncing directory: %s -> %s.' % (src, dest))
    shutil.copytree(src, dest, ignore=get_filter(opts))
    ensure_init(dest)