I communicate with a named pipe, but I would like to check if it really is a named pipe BEFORE opening it.
I check in Google but there is nothing, os.path.isfile()
returns False
, and I really need to check it.
You can try:
import stat, os
stat.S_ISFIFO(os.stat(path).st_mode)
docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With