'Whether this path is a FIFO.'

def is_fifo(self):

    try:
        return S_ISFIFO(self.stat().st_mode)
    except OSError as e:
        if (e.errno not in (ENOENT, ENOTDIR)):
            raise
        return False
