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)
    if cmd_return in 'No such file or directory':
        return False
    else:
        return True
dataset/ETHPy150Open saltstack/salt/salt/modules/hadoop.py/dfs_present/swapped operands of `in`