title: Python: os.remove is not working
body: <p>Why isn't <code>os.remove(-string-)</code> working for me? I have the code written as follows:</p>
  
  <pre><code>try:
  os.remove(a)
      output = current_time() + "\trmv successful"
      message = message + '\n' + output
      message = "".join(message)
      return message
  
  except OSError:
      try:
          os.removedirs(a)
          output = current_time() + "\trmv successful"
          message = message + '\n' + output
          message = "".join(message)
          return message
  
      except OSError:
          output = current_time() + "\trmv failed: [?]"
          message = message + '\n' + output
          message = "".join(message)
          return message
  </code></pre>
  
  <p>And it would return <code>21:32:53   rmv failed: [?]</code> every time I perform the <code>rmv</code> command in the client. My Python version is 2.6.1 if that helps.</p>