def file_exists(path):
    return os.path.isfile(os.path.expanduser(path))
Tests to see if path is a valid file.  Returns True/False.
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/file_exists