title: how can I get filenames without directory name
body: <p>how can I list only file names in a directory without directory info in the result? I tried</p>
  
  <pre><code>for file in glob.glob(dir+filetype):
      print file
  </code></pre>
  
  <p>give me result
  <code>/path_name/1.log,/path_name/2.log,....</code>
  but what I do need is file name only: <code>1.log</code>, <code>2.log</code>, etc. I do not need the directory info in the result.  is there a simple way to get rid of the path info? I don't want to some substr on the result. Thank you!</p>