SysTutorials Forums QA How to test whether a file exists and is a block special file in Python on Linux?

Bash has a -b test to test whether a file exists and is a block special file.

-b file
      True if file exists and is a block special file.

How to do this in Python?

Reply To: How to test whether a file exists and is a block special file in Python on Linux?
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Please share if you like this post: