title: Use python to reproduce bash command 'ls -a' output
body: <p>I am new to python and am working on writing bash <code>ls</code> command in python, I am stuck on <code>ls -a</code> option which (according to the manpage):</p>
  <blockquote>
  <p>Include directory entries whose names begin with a dot (`.')</p>
  </blockquote>
  <p>I am aware of os.listdir() but it does not list special entries '.' and '..'</p>
  <blockquote>
  <p>From the docs: os.listdir(path):</p>
  <p>Return a list containing the names of the entries in the directory given by path. The list is in arbitrary order. It does not include the special entries '.' and '..' even if they are present in the directory.</p>
  </blockquote>
  <p>I need help in listing these special entries through python, I would appreciate if someone can help me out here a little.</p>
  <p>Thanks all for your patience.</p>