Return whether a path is an executable file.

    Arguments:

        path (str): Path of the file to check.

    Examples:

        >>> fs.isexe("/bin/ls")
        True

        >>> fs.isexe("/home")
        False

        >>> fs.isexe("/not/a/real/path")
        False

    Returns:

        bool: True if file is executable, else false.

def isexe(*components):
    """
    Return whether a path is an executable file.

    Arguments:

        path (str): Path of the file to check.

    Examples:

        >>> fs.isexe("/bin/ls")
        True

        >>> fs.isexe("/home")
        False

        >>> fs.isexe("/not/a/real/path")
        False

    Returns:

        bool: True if file is executable, else false.
    """
    _path = path(*components)
    return isfile(_path) and os.access(_path, os.X_OK)