isfifo?

Albert Hopkins marduk at letterboxes.org
Sat Feb 7 12:23:20 EST 2009


On Sat, 2009-02-07 at 17:12 +0000, rdmurray at bitdance.com wrote:
> I've googled and looked through os.path, but I don't see a method for
> determining if a path points to a FIFO.  Anyone know of a simple way to
> do so?

import os
import stat

st_mode = os.stat(path)[0]
isfifo = stat.S_ISFIFO(st_mode)





More information about the Python-list mailing list