code: def get_dir(path, dest, saltenv='base'):
      '''
      Transfer a directory down
      '''
      src = __context__['fileclient'].cache_dir(
          path,
          saltenv,
          cachedir=os.path.join('salt-ssh', __salt__.kwargs['id_']))
      src = ' '.join(src)
      single = salt.client.ssh.Single(
              __opts__,
              '',
              **__salt__.kwargs)
      ret = single.shell.send(src, dest)
      return not ret[2f get_dir(path, dest, saltenv='base'):
      '''
      Transfer a directory down
      '''
      src = __context__['fileclient'].cache_dir(
          path,
          saltenv,
          cachedir=os.path.join('salt-ssh', __salt__.kwargs['id_']))
      src = ' '.join(src)
      single = salt.client.ssh.Single(
              __opts__,
              '',
              **__salt__.kwargs)
      ret = single.shell.send(src, dest)
      return not ret[2]
docs: Transfer a directory down