title: Python: Check if a /dev/disk device exists
body: <p>I am trying to write python script to find out if a disk device exists in /dev, but it always yield False. Any other way to do this?</p>
  
  <p>I tried</p>
  
  <pre><code>&gt;&gt;&gt; import os.path
  &gt;&gt;&gt; os.path.isfile("/dev/bsd0")
  False
  &gt;&gt;&gt; os.path.exists("/dev/bsd0")
  False
  
  $ ll /dev
  ...
  brw-rw----   1 root disk    252,   0 Nov 12 21:28 bsd0
  ...
  </code></pre>