Check to See If File Exists in Python

July 11, 2008

import os
os.path.exists(fileName)

This returns a boolean value.

Entry Filed under: Uncategorized. .

1 Comment Add your own

  • 1. sandrar  |  September 10, 2009 at 8:09 pm

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories

Archives

Top Posts