code: def exists(name,
             **kwargs):
      '''
      Verify that the named file or directory is present or exists.
      Ensures pre-requisites outside of Salt's purview
      (e.g., keytabs, private keys, etc.) have been previously satisfied before
      deployment.
  
      This function does not create the file if it doesn't exist, it will return
      an error.
  
      name
          Absolute path which must exist
      '''
      name = os.path.expanduser(name)
  
      ret = {'name': name,
             'changes': {},
             'result': True,
             'comment': ''}
      if not name:
          return _error(ret, 'Must provide name to file.exists')
      if not os.path.exists(name):
          return _error(ret, 'Specified path {0} does not exist'.format(name))
  
      ret['comment'] = 'Path {0} exists'.format(name)
      return ref exists(name,
             **kwargs):
      '''
      Verify that the named file or directory is present or exists.
      Ensures pre-requisites outside of Salt's purview
      (e.g., keytabs, private keys, etc.) have been previously satisfied before
      deployment.
  
      This function does not create the file if it doesn't exist, it will return
      an error.
  
      name
          Absolute path which must exist
      '''
      name = os.path.expanduser(name)
  
      ret = {'name': name,
             'changes': {},
             'result': True,
             'comment': ''}
      if not name:
          return _error(ret, 'Must provide name to file.exists')
      if not os.path.exists(name):
          return _error(ret, 'Specified path {0} does not exist'.format(name))
  
      ret['comment'] = 'Path {0} exists'.format(name)
      return ret
docs: Verify that the named file or directory is present or exists.
      Ensures pre-requisites outside of Salt's purview
      (e.g., keytabs, private keys, etc.) have been previously satisfied before
      deployment.
  
      This function does not create the file if it doesn't exist, it will return
      an error.
  
      name
          Absolute path which must exist