def test_destination(destination, demo=False):
 if (demo and os.path.exists(destination)):
  LOGGER.warning(u'The directory {0} already exists, and a new demo site cannot be initialized in an existing directory.'.format(destination))
  LOGGER.warning(u'Please remove the directory and try again, or use another directory.')
  LOGGER.info(u'Hint: If you want to initialize a git repository in this directory, run `git init` in the directory after creating a Nikola site.')
  return False
 else:
  return True

def test_destination ( destination , demo = False ) : if ( demo and os . path . exists ( destination ) ) : LOGGER . warning ( u'The directory {0} already exists, and a new demo site cannot be initialized in an existing directory.' . format ( destination ) ) LOGGER . warning ( u'Please remove the directory and try again, or use another directory.' ) LOGGER . info ( u'Hint: If you want to initialize a git repository in this directory, run `git init` in the directory after creating a Nikola site.' ) return False else : return True
check if the destination already exists .