code: def dfs_present(path):
      '''
      Check if a file or directory is present on the distributed FS.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' hadoop.dfs_present /some_random_file
  
      Returns True if the file is present
      '''
      cmd_return = _hadoop_cmd('dfs', 'stat', path)
      match = 'No such file or directory'
      return False if match in cmd_return else Truf dfs_present(path):
      '''
      Check if a file or directory is present on the distributed FS.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' hadoop.dfs_present /some_random_file
  
      Returns True if the file is present
      '''
      cmd_return = _hadoop_cmd('dfs', 'stat', path)
      match = 'No such file or directory'
      return False if match in cmd_return else True
docs: Check if a file or directory is present on the distributed FS.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' hadoop.dfs_present /some_random_file
  
      Returns True if the file is present